Introduce "Function with = { ... }" inspection
#KT-17119 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
301b3aad06
commit
538a746df9
+3
@@ -0,0 +1,3 @@
|
||||
// FIX: Convert to run { ... }
|
||||
// WITH_RUNTIME
|
||||
fun test(a: Int, b: Int) = <caret>{ a + b }
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
// FIX: Convert to run { ... }
|
||||
// WITH_RUNTIME
|
||||
fun test(a: Int, b: Int) = run { a + b }
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
// FIX: Convert to run { ... }
|
||||
// WITH_RUNTIME
|
||||
fun test() = <caret>{ error("") }
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
// FIX: Convert to run { ... }
|
||||
// WITH_RUNTIME
|
||||
fun test(): Nothing = run { error("") }
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
// FIX: Convert to run { ... }
|
||||
// WITH_RUNTIME
|
||||
val test get() = <caret>{ "" }
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
// FIX: Convert to run { ... }
|
||||
// WITH_RUNTIME
|
||||
val test get() = run { "" }
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
// FIX: Convert to run { ... }
|
||||
// WITH_RUNTIME
|
||||
val test get() = <caret>{ error("") }
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
// FIX: Convert to run { ... }
|
||||
// WITH_RUNTIME
|
||||
val test: Nothing get() = run { error("") }
|
||||
Reference in New Issue
Block a user