Files
kotlin-fork/compiler/testData/diagnostics/tests/smartCasts/kt3711.kt
T
2015-10-07 15:50:23 +03:00

9 lines
285 B
Kotlin
Vendored

data class StringPair(val first: String, val second: String)
infix 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<!>
}
}