Add test for stub type receiver and for KT-53639

This commit is contained in:
Mikhail Glukhikh
2022-08-18 13:55:43 +02:00
committed by teamcity
parent 5cbecd276c
commit f6ad6fb816
9 changed files with 152 additions and 0 deletions
@@ -0,0 +1,21 @@
// WITH_STDLIB
// FIR_DUMP
// SKIP_TXT
fun Any?.test() {}
class Bar {
fun test() {}
}
fun main() {
buildList {
add(Bar())
this.get(0).test() // resolved to Any?.test
}
buildList<Bar> {
add(Bar())
this.get(0).test() // resolved to Bar.test
}
}