Files
kotlin-fork/compiler/fir/analysis-tests/testData/resolve/nested/simple.kt
T
2020-03-19 09:51:01 +03:00

36 lines
524 B
Kotlin
Vendored

class Owner {
fun foo() {
bar()
this.bar()
}
fun bar() {
val n = Nested()
n.baz()
}
class Nested {
fun baz() {
gau()
this.gau()
}
fun gau() {
val o = Owner()
o.foo()
}
fun err() {
<!UNRESOLVED_REFERENCE!>foo<!>()
this.<!UNRESOLVED_REFERENCE!>foo<!>()
}
}
}
fun test() {
val o = Owner()
o.foo()
val n = Owner.Nested()
n.baz()
}