07ff53d456
otherwise I have to rollback dozens of files after using sed that follows conventions
43 lines
923 B
Plaintext
43 lines
923 B
Plaintext
// FILE: f.kt
|
|
class Dup {
|
|
fun Dup() : Unit {
|
|
this<!AMBIGUOUS_LABEL!>@Dup<!>
|
|
}
|
|
}
|
|
|
|
class A() {
|
|
fun foo() : Unit {
|
|
this@A
|
|
this<!UNRESOLVED_REFERENCE!>@a<!>
|
|
this
|
|
}
|
|
|
|
val x = this@A.foo()
|
|
val y = this.foo()
|
|
val z = foo()
|
|
}
|
|
|
|
fun foo1() : Unit {
|
|
<!NO_THIS!>this<!>
|
|
this<!UNRESOLVED_REFERENCE!>@a<!>
|
|
}
|
|
|
|
// FILE: f.kt
|
|
package closures
|
|
class A(val a:Int) {
|
|
|
|
class B() {
|
|
val x = this@B : B
|
|
val y = this@A : A
|
|
val z = this : B
|
|
val Int.xx = this : Int
|
|
fun Char.xx() : Any {
|
|
this : Char
|
|
val <!UNUSED_VARIABLE!>a<!> = {Double.() -> this : Double + this@xx : Char}
|
|
val <!UNUSED_VARIABLE!>b<!> = @a{Double.() -> this@a : Double + this@xx : Char}
|
|
val <!UNUSED_VARIABLE!>c<!> = @a{() -> <!NO_THIS!>this@a<!> + this@xx : Char}
|
|
return (@a{Double.() -> this@a : Double + this@xx : Char})
|
|
}
|
|
}
|
|
}
|