e6b5cb5216
Update includes:
- Changing syntax of `OI/`NI` tags from `<!NI;TAG!>` to `<!TAG{NI}!>`
- Fix some incorrect directives
- Change order of diagnostics in some places
- Remove ignored diagnostics from FIR test data (previously `DIAGNOSTICS` didn't work)
- Update FIR dumps in some places and add `FIR_IDENTICAL` if needed
- Replace all JAVAC_SKIP with SKIP_JAVAC directive
38 lines
991 B
Kotlin
Vendored
38 lines
991 B
Kotlin
Vendored
fun <T> getT(): T = null!!
|
|
|
|
class Test<in I> {
|
|
private fun foo() : I = getT()
|
|
|
|
fun apply(<!UNUSED_PARAMETER!>i<!>: I) {}
|
|
|
|
init {
|
|
foo()
|
|
this.foo()
|
|
}
|
|
|
|
fun test() {
|
|
apply(foo())
|
|
apply(this.foo())
|
|
with(Test<I>()) {
|
|
apply(foo()) // resolved to this@Test.foo
|
|
apply(this.<!INVISIBLE_MEMBER("foo; private/*private to this*/; 'Test'")!>foo<!>())
|
|
apply(this@with.<!INVISIBLE_MEMBER("foo; private/*private to this*/; 'Test'")!>foo<!>())
|
|
apply(this@Test.foo())
|
|
}
|
|
}
|
|
|
|
fun <I> test(t: Test<I>) {
|
|
t.apply(t.<!INVISIBLE_MEMBER("foo; private/*private to this*/; 'Test'")!>foo<!>())
|
|
}
|
|
|
|
companion object {
|
|
fun <I> test(t: Test<I>) {
|
|
t.apply(t.<!INVISIBLE_MEMBER("foo; private/*private to this*/; 'Test'")!>foo<!>())
|
|
}
|
|
}
|
|
}
|
|
|
|
fun <I> test(t: Test<I>) {
|
|
t.apply(t.<!INVISIBLE_MEMBER("foo; private/*private to this*/; 'Test'")!>foo<!>())
|
|
}
|