KT-2125 Inconsistent error message on UNSAFE_CALL

#KT-2125 fixed
This commit is contained in:
Svetlana Isakova
2012-05-31 14:06:39 +04:00
parent 423ed30e91
commit 7dab62ec97
6 changed files with 46 additions and 28 deletions
@@ -0,0 +1,12 @@
//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<!>()
}