K2: Don't lose constraint errors in the builder inference session
Pass constraint errors from the integration system into a candidate to make sure it is reported later. Related to KT-59426, KT-59437, KT-53749 #KT-55168 Submitted
This commit is contained in:
committed by
Space Team
parent
cb3d65f669
commit
2f367b013a
Vendored
+4
-4
@@ -60,18 +60,18 @@ fun main(arg: Any, condition: Boolean) {
|
||||
}
|
||||
|
||||
// See KT-54664
|
||||
val value3 = myBuilder {
|
||||
val value3 = <!NEW_INFERENCE_ERROR!>myBuilder {
|
||||
accept("")
|
||||
a = 45
|
||||
bar(::a)
|
||||
}
|
||||
}<!>
|
||||
|
||||
fun baz(t: Int) {}
|
||||
|
||||
val value4 = myBuilder {
|
||||
val value4 = <!NEW_INFERENCE_ERROR!>myBuilder {
|
||||
accept("")
|
||||
a = 45
|
||||
b[0] = 123
|
||||
baz(a)
|
||||
}
|
||||
}<!>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user