Add test for stub type receiver and for KT-53639
This commit is contained in:
committed by
teamcity
parent
5cbecd276c
commit
f6ad6fb816
+21
@@ -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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user