FIR: fix type approximation by visibility
This commit is contained in:
+4
-4
@@ -20,7 +20,7 @@ FILE: privateObjectLiteral.kt
|
||||
public final val y: R|kotlin/Int| = this@R|/C|.R|/C.x|.R|/<anonymous>.foo|()
|
||||
public get(): R|kotlin/Int|
|
||||
|
||||
internal final val z: R|<anonymous>| = object : R|kotlin/Any| {
|
||||
internal final val z: R|kotlin/Any| = object : R|kotlin/Any| {
|
||||
private constructor(): R|<anonymous>| {
|
||||
super<R|kotlin/Any|>()
|
||||
}
|
||||
@@ -31,9 +31,9 @@ FILE: privateObjectLiteral.kt
|
||||
|
||||
}
|
||||
|
||||
internal get(): R|<anonymous>|
|
||||
internal get(): R|kotlin/Any|
|
||||
|
||||
public final val w: R|kotlin/Int| = this@R|/C|.R|/C.z|.R|/<anonymous>.foo|()
|
||||
public get(): R|kotlin/Int|
|
||||
public final val w: R|ERROR CLASS: Unresolved name: foo| = this@R|/C|.R|/C.z|.<Unresolved name: foo>#()
|
||||
public get(): R|ERROR CLASS: Unresolved name: foo|
|
||||
|
||||
}
|
||||
|
||||
+1
-1
@@ -9,5 +9,5 @@ class C {
|
||||
fun foo() = 13
|
||||
}
|
||||
|
||||
val w = z.foo() // ERROR!
|
||||
val w = z.<!UNRESOLVED_REFERENCE{LT}!><!UNRESOLVED_REFERENCE{PSI}!>foo<!>()<!> // ERROR!
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user