SmartPointers in Smart Completion for anonymous object generation

#KT-32615 Fixed
This commit is contained in:
Alexander Podkhalyuzin
2019-11-01 13:24:00 +03:00
parent d321f4626f
commit d2ae39489f
5 changed files with 36 additions and 11 deletions
@@ -0,0 +1,5 @@
import test.foo.Foo
fun foo() {
val x: Foo = FooC<caret>
}
@@ -0,0 +1,9 @@
package test.foo
interface Foo {
fun run(): Unit
}
abstract class FooClass : Foo {
}
@@ -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.
}
}
}