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,21 @@
|
||||
//KT-3988 This@label for outer function not resolved
|
||||
|
||||
class Comment() {
|
||||
var article = ""
|
||||
|
||||
}
|
||||
class Comment2() {
|
||||
var article2 = ""
|
||||
}
|
||||
|
||||
fun new(body: Comment.() -> Unit) = body
|
||||
|
||||
fun new2(body: Comment2.() -> Unit) = body
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
new {
|
||||
new2 {
|
||||
this@new //UNRESOLVED REFERENCE
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user