FIR resolve: add correct receiver tower scopes + check receivers
This commit is contained in:
@@ -36,8 +36,8 @@ FILE: access.kt
|
||||
^plus String()
|
||||
}
|
||||
|
||||
public final fun R|Foo|.check(): R|kotlin/String| {
|
||||
^check R|/Foo.abc|().R|/Bar.plus|(R|/Bar.bar|())
|
||||
public final fun R|Foo|.check(): <ERROR TYPE REF: Inapplicable(INAPPLICABLE): [kotlin/Int.plus, kotlin/Int.plus, kotlin/Int.plus, kotlin/Int.plus, kotlin/Int.plus, kotlin/Int.plus]> {
|
||||
^check R|/Foo.abc|().<Inapplicable(INAPPLICABLE): [kotlin/Int.plus, kotlin/Int.plus, kotlin/Int.plus, kotlin/Int.plus, kotlin/Int.plus, kotlin/Int.plus]>#(R|/bar|())
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ FILE: receiverConsistency.kt
|
||||
}
|
||||
|
||||
public final fun test(): R|kotlin/Unit| {
|
||||
R|/C.err|()
|
||||
<Unresolved name: err>#()
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+1
-1
@@ -30,7 +30,7 @@ FILE: simple.kt
|
||||
}
|
||||
|
||||
public final fun err(): R|kotlin/Unit| {
|
||||
R|/Owner.foo|()
|
||||
<Unresolved name: foo>#()
|
||||
this#.<Unresolved name: foo>#()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user