Files
Denis.Zharkov d7399ed1cf K2: Avoid losing diagnostics for synthetic calls
Some of the changed tests may duplicate other existing diagnostics,
but that should not be reason not to report them at all.

There might be another job to be done to avoid diagnostic duplications
2023-02-15 08:13:41 +00:00

9 lines
159 B
Kotlin
Vendored

// !DIAGNOSTICS: -UNUSED_EXPRESSION
class Inv<I>
fun <T> create(): Inv<T> = TODO()
fun main() {
<!NEW_INFERENCE_ERROR!>if (true) create() else null<!>
}