Don't look at raw type's arguments while enhancing super types
^KT-48172 Fixed
This commit is contained in:
committed by
TeamCityServer
parent
63cefe228d
commit
d730db094a
Vendored
+2
@@ -0,0 +1,2 @@
|
||||
class Bar<K> {
|
||||
}
|
||||
Vendored
+27
@@ -0,0 +1,27 @@
|
||||
// WITH_RUNTIME
|
||||
// TARGET_BACKEND: JVM
|
||||
|
||||
/*
|
||||
ServletOpenApiContextBuilder<
|
||||
T : raw (
|
||||
ServletOpenApiContextBuilder<ServletOpenApiContextBuilder<*>>
|
||||
..
|
||||
ServletOpenApiContextBuilder<out ServletOpenApiContextBuilder<*>>?
|
||||
)
|
||||
>
|
||||
: GenericOpenApiContextBuilder<
|
||||
raw (
|
||||
ServletOpenApiContextBuilder<[ERROR : <LOOP IN SUPERTYPES>]> // exception on this error type during serialization
|
||||
..
|
||||
ServletOpenApiContextBuilder<*>?
|
||||
)
|
||||
>
|
||||
*/
|
||||
public class Foo<T extends Foo> extends Bar<Foo> {
|
||||
String ctxId = "";
|
||||
|
||||
public T ctxId(String ctxId) {
|
||||
this.ctxId = ctxId;
|
||||
return (T) this;
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
// WITH_RUNTIME
|
||||
// TARGET_BACKEND: JVM
|
||||
|
||||
public class Foo<T extends Foo> extends Bar<Foo> {
|
||||
String ctxId = "";
|
||||
|
||||
public T ctxId(String ctxId) {
|
||||
this.ctxId = ctxId;
|
||||
return (T) this;
|
||||
}
|
||||
}
|
||||
Vendored
+6
@@ -0,0 +1,6 @@
|
||||
================ Step #1 =================
|
||||
|
||||
Compiling files:
|
||||
End of files
|
||||
Exit code: OK
|
||||
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
================ Step #1 =================
|
||||
|
||||
Compiling files:
|
||||
src/main.kt
|
||||
End of files
|
||||
Exit code: OK
|
||||
|
||||
Vendored
+7
@@ -0,0 +1,7 @@
|
||||
class Main {
|
||||
fun init() {
|
||||
Foo<Foo<*>>() //this is the call that causes the build exception, if you comment it out everything works fine
|
||||
.ctxId("")
|
||||
}
|
||||
}
|
||||
fun box() = "OK"
|
||||
Reference in New Issue
Block a user