Create from Usage: Infer expected type from base declarations
#KT-17480 Fixed
This commit is contained in:
Vendored
+9
@@ -0,0 +1,9 @@
|
||||
// "Create class 'XImpl'" "true"
|
||||
interface X
|
||||
interface A {
|
||||
fun f(): X
|
||||
}
|
||||
|
||||
class B : A {
|
||||
override fun f() = <caret>XImpl()
|
||||
}
|
||||
+13
@@ -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 {
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user