K2: introduce JavaTypeParameterDefaultRepresentationWithDNN exp. feature
#KT-66447 Fixed
This commit is contained in:
committed by
Space Team
parent
4464385fa9
commit
cd20f31810
@@ -1,4 +1,5 @@
|
||||
// FIR_IDENTICAL
|
||||
// LANGUAGE: -JavaTypeParameterDefaultRepresentationWithDNN
|
||||
// ISSUE: KT-58933
|
||||
// FILE: J.java
|
||||
public interface J<T> {
|
||||
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
// LANGUAGE: +JavaTypeParameterDefaultRepresentationWithDNN
|
||||
// ISSUE: KT-58933
|
||||
// FILE: J.java
|
||||
public interface J<T> {
|
||||
void simple(T t);
|
||||
void box(Box<T> box);
|
||||
}
|
||||
|
||||
// FILE: test.kt
|
||||
class Box<T>
|
||||
|
||||
class K<T> : J<T> {
|
||||
override fun simple(t: T & Any) {}
|
||||
override fun box(box: Box<T & Any>) {}
|
||||
}
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
// LANGUAGE: +JavaTypeParameterDefaultRepresentationWithDNN
|
||||
// ISSUE: KT-58933
|
||||
// FILE: J.java
|
||||
public interface J<T> {
|
||||
void simple(T t);
|
||||
void box(Box<T> box);
|
||||
}
|
||||
|
||||
// FILE: test.kt
|
||||
class Box<T>
|
||||
|
||||
<!ABSTRACT_MEMBER_NOT_IMPLEMENTED!>class K<!><T> : J<T> {
|
||||
<!NOTHING_TO_OVERRIDE!>override<!> fun simple(t: T & Any) {}
|
||||
<!NOTHING_TO_OVERRIDE!>override<!> fun box(box: Box<T & Any>) {}
|
||||
}
|
||||
Reference in New Issue
Block a user