KT-11104 : quick fix "surround with null check"
This commit is contained in:
committed by
Mikhail Glukhikh
parent
585dcbf1f3
commit
90342ea33b
@@ -0,0 +1,12 @@
|
||||
// "Surround with null check" "false"
|
||||
// ACTION: Introduce local variable
|
||||
// ACTION: Add non-null asserted (!!) call
|
||||
// ACTION: Replace with safe (?.) call
|
||||
// ERROR: Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type Int?
|
||||
|
||||
class My(var x: Int?) {
|
||||
|
||||
fun foo() {
|
||||
x<caret>.hashCode()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user