Do not suggest adding !! on null constant #KT-14643 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
84418738a7
commit
66bd9d63dd
@@ -0,0 +1,8 @@
|
||||
// "Add non-null asserted (!!) call" "false"
|
||||
// ACTION: Add 'const' modifier
|
||||
// ACTION: Add 'toString()' call
|
||||
// ACTION: Change type of 'x' to 'String?'
|
||||
// ACTION: Convert property initializer to getter
|
||||
// ERROR: Null can not be a value of a non-null type String
|
||||
|
||||
val x: String = null<caret>
|
||||
Reference in New Issue
Block a user