Add regression tests
KT-32358
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
// !LANGUAGE: +NewInference
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
|
||||
// no inline modifier
|
||||
fun <R> callIt(fn: () -> R): R = TODO()
|
||||
|
||||
fun smartIt(p1: String?, p2: String?) {
|
||||
p1 ?: callIt { TODO() }
|
||||
<!DEBUG_INFO_SMARTCAST!>p1<!>.length // smartcast
|
||||
}
|
||||
Reference in New Issue
Block a user