Intentions: Move class member to companion object
#KT-9697 In Progress
This commit is contained in:
+7
@@ -0,0 +1,7 @@
|
||||
class A {
|
||||
companion object {
|
||||
<spot>fun foo() = 1</spot>
|
||||
}
|
||||
}
|
||||
|
||||
fun bar() = A.foo()
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
class A {
|
||||
<spot>fun foo() = 1</spot>
|
||||
}
|
||||
|
||||
fun bar() = A().foo()
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
<html>
|
||||
<body>
|
||||
This intention moves class member to the corresponding companion object.
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user