Create from Usage: Infer expected type from base declarations

#KT-17480 Fixed
This commit is contained in:
Alexey Sedunov
2017-07-19 16:13:49 +03:00
parent 3b4891279e
commit 78117b3e7b
4 changed files with 35 additions and 1 deletions
@@ -0,0 +1,9 @@
// "Create class 'XImpl'" "true"
interface X
interface A {
fun f(): X
}
class B : A {
override fun f() = <caret>XImpl()
}
@@ -0,0 +1,13 @@
// "Create class 'XImpl'" "true"
interface X
interface A {
fun f(): X
}
class B : A {
override fun f() = XImpl()
}
class XImpl : X {
}