Update test data: add correct error

This commit is contained in:
Mikhail Zarechenskiy
2020-07-03 14:54:19 +03:00
parent 87a520fc30
commit a0ecfce7b7
2 changed files with 4 additions and 0 deletions
@@ -1,3 +1,5 @@
// ERROR: Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type Boolean?
fun test(a: Any) { fun test(a: Any) {
val b = a as Boolean?;<caret> val b = a as Boolean?;<caret>
!b !b
@@ -1,3 +1,5 @@
// ERROR: Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type Boolean?
fun test(a: Any) { fun test(a: Any) {
val b = a as Boolean? val b = a as Boolean?
!b !b