Fix WrapWithSafeLetCallFix ignore extension method
Related to KT-17726
This commit is contained in:
committed by
Mikhail Glukhikh
parent
bd73916d99
commit
c8e58ce9ab
-1
@@ -2,7 +2,6 @@
|
||||
// ACTION: Add non-null asserted (!!) call
|
||||
// ACTION: Convert to expression body
|
||||
// ACTION: Replace with safe (this?.) call
|
||||
// ACTION: Wrap with '?.let { ... }' call
|
||||
// ERROR: Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type A?
|
||||
|
||||
class A {
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
// "Wrap with '?.let { ... }' call" "false"
|
||||
// WITH_RUNTIME
|
||||
// ACTION: Add non-null asserted (!!) call
|
||||
// ACTION: Introduce local variable
|
||||
// ACTION: Replace with safe (this?.) call
|
||||
// ERROR: Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type String?
|
||||
|
||||
fun String?.foo() {
|
||||
toLowerCase<caret>()
|
||||
}
|
||||
Reference in New Issue
Block a user