Add better quickfix for scope functions #KT-13676 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
09d8c31433
commit
ab4eb1dd20
@@ -0,0 +1,10 @@
|
||||
// "Replace scope function with safe (?.) call" "false"
|
||||
// ACTION: Add non-null asserted (!!) call
|
||||
// ACTION: Introduce local variable
|
||||
// ACTION: Replace with safe (?.) call
|
||||
// ACTION: Surround with null check
|
||||
// ERROR: Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type String?
|
||||
// WITH_RUNTIME
|
||||
fun foo(a: String?) {
|
||||
a<caret>.length
|
||||
}
|
||||
Reference in New Issue
Block a user