x?.y != null and x?.call() != null provoke now x != null, a set of tests #KT-2127 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
9001b9bcc0
commit
11f50186fa
@@ -9,6 +9,6 @@ fun foo(y: MyClass?): Int {
|
||||
}
|
||||
fun bar(y: MyClass?) {
|
||||
y?.x!!.length
|
||||
// !! is necessary here
|
||||
y!!.x
|
||||
// !! is NOT necessary here, because y?.x != null
|
||||
y<!UNNECESSARY_NOT_NULL_ASSERTION!>!!<!>.x
|
||||
}
|
||||
Reference in New Issue
Block a user