Convert Parameter to Receiver: Do not qualify companion members with labeled 'this'
#KT-13933 Fixed
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
interface Application {
|
||||
fun put(testKey: String, s: String)
|
||||
}
|
||||
|
||||
abstract class ApplicationModule {
|
||||
abstract fun install(<caret>application: Application)
|
||||
}
|
||||
|
||||
class AppTest {
|
||||
class ApplicationLoaderTestApplicationFeatureWithEnvironment() : ApplicationModule() {
|
||||
override fun install(application: Application) {
|
||||
application.put(TestKey, "2")
|
||||
}
|
||||
}
|
||||
|
||||
companion object {
|
||||
val TestKey = ""
|
||||
}
|
||||
}
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
interface Application {
|
||||
fun put(testKey: String, s: String)
|
||||
}
|
||||
|
||||
abstract class ApplicationModule {
|
||||
abstract fun Application.install()
|
||||
}
|
||||
|
||||
class AppTest {
|
||||
class ApplicationLoaderTestApplicationFeatureWithEnvironment() : ApplicationModule() {
|
||||
override fun Application.install() {
|
||||
put(TestKey, "2")
|
||||
}
|
||||
}
|
||||
|
||||
companion object {
|
||||
val TestKey = ""
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user