FIR: substitute the whole lambda body after builder inference
This commit is contained in:
committed by
teamcityserver
parent
f737d8002e
commit
0026560bd7
Vendored
+3
-3
@@ -10,7 +10,7 @@ fun main() {
|
||||
buildList {
|
||||
add(3)
|
||||
object : A {
|
||||
override fun foo(): MutableList<String> = this@buildList
|
||||
override fun foo(): MutableList<String> = <!RETURN_TYPE_MISMATCH!>this@buildList<!>
|
||||
}
|
||||
}
|
||||
buildList {
|
||||
@@ -19,12 +19,12 @@ fun main() {
|
||||
}
|
||||
buildList {
|
||||
add("3")
|
||||
val x: MutableList<Int> = this@buildList
|
||||
val x: MutableList<Int> = <!INITIALIZER_TYPE_MISMATCH!>this@buildList<!>
|
||||
}
|
||||
buildList {
|
||||
val y: CharSequence = ""
|
||||
add(y)
|
||||
val x: MutableList<String> = this@buildList
|
||||
val x: MutableList<String> = <!INITIALIZER_TYPE_MISMATCH!>this@buildList<!>
|
||||
}
|
||||
buildList {
|
||||
add("")
|
||||
|
||||
Reference in New Issue
Block a user