Do not suggest adding !! on null constant #KT-14643 Fixed

This commit is contained in:
Dmitry Neverov
2017-06-22 07:39:59 +03:00
committed by Mikhail Glukhikh
parent 84418738a7
commit 66bd9d63dd
3 changed files with 19 additions and 1 deletions
+8
View File
@@ -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>