Create Class from Usage: Use type parameter bounds as supertypes
#KT-15242 Fixed
This commit is contained in:
+8
@@ -0,0 +1,8 @@
|
||||
// "Create class 'Foo'" "true"
|
||||
interface I
|
||||
|
||||
fun <T : I> foo() {}
|
||||
|
||||
fun x() {
|
||||
foo<<caret>Foo>()
|
||||
}
|
||||
Vendored
+12
@@ -0,0 +1,12 @@
|
||||
// "Create class 'Foo'" "true"
|
||||
interface I
|
||||
|
||||
fun <T : I> foo() {}
|
||||
|
||||
fun x() {
|
||||
foo<Foo>()
|
||||
}
|
||||
|
||||
class Foo : I {
|
||||
|
||||
}
|
||||
Vendored
+9
@@ -0,0 +1,9 @@
|
||||
// "Create class 'Foo'" "true"
|
||||
open class A
|
||||
interface I
|
||||
|
||||
fun <T : I> foo() where T : A {}
|
||||
|
||||
fun x() {
|
||||
foo<<caret>Foo>()
|
||||
}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
// "Create class 'Foo'" "true"
|
||||
open class A
|
||||
interface I
|
||||
|
||||
fun <T : I> foo() where T : A {}
|
||||
|
||||
fun x() {
|
||||
foo<Foo>()
|
||||
}
|
||||
|
||||
class Foo : I, A() {
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user