[FE] Relax the "no subtyping between context receivers" limitation

This commit is contained in:
Anastasiya Shadrina
2021-06-10 15:21:32 +07:00
committed by TeamCityServer
parent bfd20e1890
commit 1f6746dc74
6 changed files with 31 additions and 53 deletions
@@ -4,10 +4,10 @@ context(Collection<P>) class B<P>
fun Int.foo() {
A<Int>()
<!UNRESOLVED_REFERENCE_WRONG_RECEIVER!>A<!><String>()
<!NO_CONTEXT_RECEIVER!>A<String>()<!>
}
fun Collection<Int>.bar() {
B<Int>()
<!UNRESOLVED_REFERENCE_WRONG_RECEIVER!>B<!><String>()
<!NO_CONTEXT_RECEIVER!>B<String>()<!>
}