KT-1270 Poor highlighting when trying to dereference a nullable reference

This commit is contained in:
Svetlana Isakova
2012-02-20 20:12:50 +04:00
parent e87de1ac13
commit b35d340056
2 changed files with 14 additions and 1 deletions
@@ -0,0 +1,13 @@
//KT-1270 Poor highlighting when trying to dereference a nullable reference
//+JDK
package kt1270
fun foo() {
val sc = java.util.HashMap<String, SomeClass>()[""]
val <!UNUSED_VARIABLE!>value<!> = sc<!UNSAFE_CALL!>.<!>value
}
private class SomeClass() {
val value : Int = 5
}