KT-1550 Cannot use parenthesized array access expression.
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
package foo
|
||||
|
||||
import java.util.*
|
||||
|
||||
fun main(args : Array<String>)
|
||||
{
|
||||
val c = ArrayList<Int>()
|
||||
c.add(3)
|
||||
System.out?.println(++(c[0]))
|
||||
System.out?.println((c[1])--)
|
||||
System.out?.println(-(c[2]))
|
||||
}
|
||||
Reference in New Issue
Block a user