[FIR] Move check for _private-to-this_ visibility into checker
^KT-55446 ^KT-65790 Fixed
This commit is contained in:
committed by
Space Team
parent
5fe1e0c1a5
commit
c64575f4a2
+1
-1
@@ -14,7 +14,7 @@ class Test<in I> {
|
||||
apply(foo())
|
||||
apply(this.foo())
|
||||
with(Test<I>()) {
|
||||
apply(foo()) // resolved to this@Test.foo
|
||||
apply(<!INVISIBLE_REFERENCE!>foo<!>()) // K1: this@Test.foo, K2: this@with.foo, see KT-55446
|
||||
apply(this.<!INVISIBLE_REFERENCE!>foo<!>())
|
||||
apply(this@with.<!INVISIBLE_REFERENCE!>foo<!>())
|
||||
apply(this@Test.foo())
|
||||
|
||||
@@ -14,7 +14,7 @@ class Test<in I> {
|
||||
apply(foo())
|
||||
apply(this.foo())
|
||||
with(Test<I>()) {
|
||||
apply(foo()) // resolved to this@Test.foo
|
||||
apply(foo()) // K1: this@Test.foo, K2: this@with.foo, see KT-55446
|
||||
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())
|
||||
|
||||
@@ -14,7 +14,7 @@ class Test<in I, out O> {
|
||||
apply(i)
|
||||
apply(this.i)
|
||||
with(Test<I, O>()) {
|
||||
apply(i) // resolved to this@Test.i
|
||||
apply(<!INVISIBLE_REFERENCE!>i<!>) // K1: this@Test.i, K2: this@with.i, see KT-55446
|
||||
apply(this.<!INVISIBLE_REFERENCE!>i<!>)
|
||||
apply(this@with.<!INVISIBLE_REFERENCE!>i<!>)
|
||||
apply(this@Test.i)
|
||||
|
||||
@@ -14,7 +14,7 @@ class Test<in I, out O> {
|
||||
apply(i)
|
||||
apply(this.i)
|
||||
with(Test<I, O>()) {
|
||||
apply(i) // resolved to this@Test.i
|
||||
apply(i) // K1: this@Test.i, K2: this@with.i, see KT-55446
|
||||
apply(this.<!INVISIBLE_MEMBER("i; private/*private to this*/; 'Test'")!>i<!>)
|
||||
apply(this@with.<!INVISIBLE_MEMBER("i; private/*private to this*/; 'Test'")!>i<!>)
|
||||
apply(this@Test.i)
|
||||
|
||||
@@ -14,7 +14,7 @@ class Test<in I, out O> {
|
||||
i = getT()
|
||||
this.i = getT()
|
||||
with(Test<I, O>()) {
|
||||
i = getT() // resolved to this@Test.i
|
||||
<!INVISIBLE_REFERENCE!>i<!> = getT() // K1: this@Test.i, K2: this@with.i, see KT-55446
|
||||
this.<!INVISIBLE_REFERENCE!>i<!> = getT()
|
||||
this@with.<!INVISIBLE_REFERENCE!>i<!> = getT()
|
||||
this@Test.i = getT()
|
||||
|
||||
@@ -14,7 +14,7 @@ class Test<in I, out O> {
|
||||
i = getT()
|
||||
this.i = getT()
|
||||
with(Test<I, O>()) {
|
||||
i = getT() // resolved to this@Test.i
|
||||
i = getT() // K1: this@Test.i, K2: this@with.i, see KT-55446
|
||||
this.<!INVISIBLE_MEMBER("i; private/*private to this*/; 'Test'")!>i<!> = getT()
|
||||
this@with.<!INVISIBLE_MEMBER("i; private/*private to this*/; 'Test'")!>i<!> = getT()
|
||||
this@Test.i = getT()
|
||||
|
||||
Reference in New Issue
Block a user