Test data fixed
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
// !DIAGNOSTICS: -UNUSED_VARIABLE
|
||||
//KT-1270 Poor highlighting when trying to dereference a nullable reference
|
||||
|
||||
package kt1270
|
||||
|
||||
fun foo() {
|
||||
val sc = java.util.HashMap<String, SomeClass>()[""]
|
||||
val <!UNUSED_VARIABLE!>value<!> = sc<!UNSAFE_CALL!>.<!>value
|
||||
val value = sc.value
|
||||
}
|
||||
|
||||
private class SomeClass() {
|
||||
|
||||
Reference in New Issue
Block a user