Introduce Parameter: Suggest removing extension receiver which becomes unused after new parameter is added
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
// WITH_RUNTIME
|
||||
// WITH_DEFAULT_VALUE: false
|
||||
class A(val n: Int)
|
||||
|
||||
fun A.foo(): Int {
|
||||
return <selection>n + 1</selection>
|
||||
}
|
||||
|
||||
fun test() {
|
||||
A(1).foo()
|
||||
with(A(1)) {
|
||||
foo()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user