Fix invalid testdata for ConvertToScopeIntention applicability
This commit is contained in:
@@ -3,8 +3,6 @@
|
||||
// ACTION: Add non-null asserted (!!) call
|
||||
// ACTION: Introduce local variable
|
||||
// ACTION: Replace with safe (?.) call
|
||||
// ACTION: Convert to run
|
||||
// ACTION: Convert to with
|
||||
// ERROR: Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type Int?
|
||||
|
||||
fun foo(arg: Int?) {
|
||||
|
||||
@@ -4,8 +4,6 @@
|
||||
// ACTION: Convert to block body
|
||||
// ACTION: Introduce local variable
|
||||
// ACTION: Replace with safe (?.) call
|
||||
// ACTION: Convert to run
|
||||
// ACTION: Convert to with
|
||||
// ERROR: Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type Int?
|
||||
|
||||
fun Int.bar() = this
|
||||
|
||||
Reference in New Issue
Block a user