Create From Usage: Fix StackOverflowException on recursive type parameter bounds
#EA-69240 Fixed
This commit is contained in:
+6
@@ -0,0 +1,6 @@
|
||||
// "Create parameter 'foo'" "true"
|
||||
class Cyclic<E : Cyclic<E>>
|
||||
|
||||
fun test() {
|
||||
val c : Cyclic<*> = <caret>foo
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
// "Create parameter 'foo'" "true"
|
||||
class Cyclic<E : Cyclic<E>>
|
||||
|
||||
fun test(foo: Cyclic<*>) {
|
||||
val c : Cyclic<*> = foo
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
// "Create property 'foo'" "true"
|
||||
// ERROR: Property must be initialized
|
||||
class Cyclic<E : Cyclic<E>>
|
||||
|
||||
fun test() {
|
||||
val c : Cyclic<*> = <caret>foo
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
// "Create property 'foo'" "true"
|
||||
// ERROR: Property must be initialized
|
||||
class Cyclic<E : Cyclic<E>>
|
||||
|
||||
val foo: Cyclic<*>
|
||||
|
||||
fun test() {
|
||||
val c : Cyclic<*> = foo
|
||||
}
|
||||
Reference in New Issue
Block a user