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