Files
kotlin-fork/compiler/testData/diagnostics/tests/smartCasts/kt3711.kt
T
Mikhail Glukhikh 1544755838 Test refactoring
2015-04-14 19:11:26 +03:00

9 lines
279 B
Kotlin

data class StringPair(val first: String, val second: String)
fun String.to(second: String) = StringPair(this, second)
fun f(a: String?) {
if (a != null) {
val <!UNUSED_VARIABLE!>b<!>: StringPair = <!DEBUG_INFO_SMARTCAST!>a<!> to <!DEBUG_INFO_SMARTCAST!>a<!>
}
}