Files
kotlin-fork/compiler/testData/diagnostics/tests/nullabilityAndSmartCasts/kt2125.kt
T
2014-10-01 18:52:52 +04:00

13 lines
265 B
Kotlin
Vendored

//KT-2125 Inconsistent error message on UNSAFE_CALL
package e
fun main() {
val <!UNUSED_VARIABLE!>compareTo<!> = 1
val s: String? = null
s<!UNSAFE_CALL!>.<!>compareTo("")
val <!UNUSED_VARIABLE!>bar<!> = 2
s.<!UNRESOLVED_REFERENCE!>bar<!>()
}