[FIR] Fix resolving of local class reference chain ^KT-47135 Fixed
This commit is contained in:
committed by
TeamCityServer
parent
cbfe0ac073
commit
3dd8ad3599
+2
-2
@@ -18,11 +18,11 @@ fun <E> foo(x: Any, y: Any) : Any {
|
||||
}
|
||||
|
||||
// bare type
|
||||
if (y is <!UNRESOLVED_REFERENCE!>Outer.Inner<!>) {
|
||||
if (y is <!NO_TYPE_ARGUMENTS_ON_RHS!>Outer.Inner<!>) {
|
||||
return y
|
||||
}
|
||||
|
||||
y as <!UNRESOLVED_REFERENCE!>Outer<*>.Inner<!>
|
||||
y as Outer<*>.Inner
|
||||
|
||||
return C()
|
||||
}
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
// FIR_IDENTICAL
|
||||
// KT-47135
|
||||
|
||||
fun test2() {
|
||||
class LocalA {
|
||||
inner class LocalB {
|
||||
inner class LocalC {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fun LocalA.LocalB.blah() {
|
||||
val c: LocalA.LocalB.LocalC = LocalC()
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
package
|
||||
|
||||
public fun test2(): kotlin.Unit
|
||||
Reference in New Issue
Block a user