SmartPointers in Smart Completion for anonymous object generation
#KT-32615 Fixed
This commit is contained in:
+5
@@ -0,0 +1,5 @@
|
||||
import test.foo.Foo
|
||||
|
||||
fun foo() {
|
||||
val x: Foo = FooC<caret>
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
package test.foo
|
||||
|
||||
interface Foo {
|
||||
fun run(): Unit
|
||||
}
|
||||
|
||||
abstract class FooClass : Foo {
|
||||
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
import test.foo.Foo
|
||||
import test.foo.FooClass
|
||||
|
||||
fun foo() {
|
||||
val x: Foo = object : FooClass() {
|
||||
override fun run() {
|
||||
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user