GreatSyntacticShift: Syntax for function types, function literals, when and tuples
Bug:
fun loop(var times : Int) {
while(times > 0) {
val u : (value : Int) -> Unit = { // This arrow is confusing the lookahead
System.out?.println(it)
}
u(times--)
}
}
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
// +JDK
|
||||
|
||||
namespace foobar
|
||||
package foobar
|
||||
|
||||
namespace a {
|
||||
package a {
|
||||
import java.*
|
||||
|
||||
val a : util.List<Int>? = null
|
||||
@@ -14,7 +14,7 @@ abstract class Foo<T>() {
|
||||
abstract val x : T<Int>
|
||||
}
|
||||
|
||||
namespace a {
|
||||
package a {
|
||||
import java.util.*
|
||||
|
||||
val b : List<Int>? = a
|
||||
|
||||
Reference in New Issue
Block a user