41fd43b5e5
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--)
}
}
15 lines
315 B
Plaintext
15 lines
315 B
Plaintext
// http://youtrack.jetbrains.net/issue/KT-526
|
|
// KT-526 Unresolved reference for inner static class
|
|
|
|
package demo
|
|
|
|
class Foo {
|
|
class object {
|
|
class Bar() { }
|
|
}
|
|
}
|
|
class User {
|
|
fun main() : Unit {
|
|
var <!UNUSED_VARIABLE!>boo<!> : Foo.Bar? /* <-- this reference is red */ = Foo.Bar()
|
|
}
|
|
} |