FIR resolve: add correct receiver tower scopes + check receivers

This commit is contained in:
Mikhail Glukhikh
2019-04-16 16:47:28 +03:00
parent 4b5172cda3
commit 93496f1dee
10 changed files with 267 additions and 89 deletions
@@ -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
View File
@@ -30,7 +30,7 @@ FILE: simple.kt
}
public final fun err(): R|kotlin/Unit| {
R|/Owner.foo|()
<Unresolved name: foo>#()
this#.<Unresolved name: foo>#()
}