blob: 82414b8ec42d7efc849fbb11a38316fda01145d6 [file]
// !DIAGNOSTICS: -UNUSED_PARAMETER
class Inv<T>
fun <T> foo(f: () -> T): Inv<T> = TODO()
fun myExit(): Nothing = TODO()
fun test(x: String?): Inv<String> {
return foo {
if (x == null) myExit()
x
}
}