Add tests for obsolete issues
#KT-38804 Obsolete #KT-38801 Obsolete #KT-38835 Obsolete #KT-38737 Obsolete #KT-38664 Obsolete #KT-38549 Obsolete #KT-38766 Obsolete #KT-38714 Obsolete
This commit is contained in:
Vendored
+14
@@ -0,0 +1,14 @@
|
||||
// !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()
|
||||
<!DEBUG_INFO_SMARTCAST!>x<!>
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user