Intentions: Implement intention which converts object literal to class
#KT-15056 Fixed
This commit is contained in:
+9
@@ -0,0 +1,9 @@
|
||||
open class K
|
||||
|
||||
fun foo(n: Int) {
|
||||
val x = <caret>O(n)
|
||||
}
|
||||
|
||||
class O(private val n: Int) : K() {
|
||||
fun bar() = n
|
||||
}
|
||||
Reference in New Issue
Block a user