Intentions: Move class member to companion object
#KT-9697 In Progress
This commit is contained in:
+10
@@ -0,0 +1,10 @@
|
||||
package test2;
|
||||
|
||||
import test.A;
|
||||
import test.A.Companion.B;
|
||||
|
||||
class Test {
|
||||
B foo() {
|
||||
return new B(new A());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user