Don't use builder inference if possible
The builder inference is running only if there are still uninferred type variables ^KT-48193 Fixed
This commit is contained in:
committed by
TeamCityServer
parent
3df5667a4b
commit
55811c8851
Vendored
+2
-2
@@ -18,6 +18,6 @@ val test1 = <!NEW_INFERENCE_NO_INFORMATION_FOR_PARAMETER!>generate<!> {
|
||||
yield(<!NO_COMPANION_OBJECT!>A<!>)
|
||||
}
|
||||
|
||||
val test2: Int = <!TYPE_MISMATCH!>generate {
|
||||
val test2: Int = generate {
|
||||
yield(<!TYPE_MISMATCH!>A()<!>)
|
||||
}<!>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user