Introduct "Redundant 'with' call" inspection #KT-6633 Fixed
This commit is contained in:
committed by
Natalia Selezneva
parent
58becffb1f
commit
4c34ced1fa
+12
@@ -0,0 +1,12 @@
|
||||
// PROBLEM: none
|
||||
// WITH_RUNTIME
|
||||
fun test() {
|
||||
val c = MyClass()
|
||||
<caret>with(c) {
|
||||
println(f())
|
||||
}
|
||||
}
|
||||
|
||||
class MyClass {
|
||||
val f: () -> String = { "" }
|
||||
}
|
||||
Reference in New Issue
Block a user