mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Fix wrong array declaration
This commit is contained in:
+2
-1
@@ -25,7 +25,8 @@ import com.intellij.debugger.streams.trace.impl.handler.type.GenericType
|
||||
/**
|
||||
* @author Vitaliy.Bibaev
|
||||
*/
|
||||
class JavaArrayVariable(override val elementType: GenericType, name: String) : VariableImpl("$elementType[]", name), ArrayVariable {
|
||||
class JavaArrayVariable(override val elementType: GenericType, name: String)
|
||||
: VariableImpl("${elementType.variableTypeName}[]", name), ArrayVariable {
|
||||
override fun get(index: Expression): Expression = TextExpression("$name[${index.toCode()}]")
|
||||
|
||||
override fun set(index: Expression, value: Expression): Expression = TextExpression("$name[${index.toCode()}] = ${value.toCode()}")
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
var array: kotlin.Array<kotlin.Int> = kotlin.arrayOfNulls<kotlin.Int>(10)
|
||||
|
||||
Reference in New Issue
Block a user