Added tests on labels
#KT-1703 Fixed #KT-361 Fixed #KT-3920 Fixed #KT-3988 Fixed #KT-4247 Fixed #KT-4586 Fixed #KT-4603 Fixed #KT-591 Fixed
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
//KT-591 Unresolved label in valid code
|
||||
|
||||
fun test() {
|
||||
val <!UNUSED_VARIABLE!>a<!> = @a{(Int?).() ->
|
||||
if (this != null) {
|
||||
val <!UNUSED_VARIABLE!>b<!> = {String.() ->
|
||||
<!DEBUG_INFO_AUTOCAST!>this@a<!>.times(5) // @a Unresolved
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user