"Add non-null asserted (!!) call": Fix for array access expression (KT-27071)
^KT-27071 Fixed
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
// "Add non-null asserted (!!) call" "true"
|
||||
// SHOULD_BE_AVAILABLE_AFTER_EXECUTION
|
||||
// ERROR: Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type Array<String?>?
|
||||
|
||||
fun foo(a: Array<String?>?): String {
|
||||
return a[0]!!
|
||||
}
|
||||
Reference in New Issue
Block a user