KT-1270 Poor highlighting when trying to dereference a nullable reference
This commit is contained in:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user