issue warning instead of error in case of finite bound or non-expansive inheritance violation in java code
This commit is contained in:
Vendored
+1
-1
@@ -2,4 +2,4 @@
|
||||
public class A<T extends A> {}
|
||||
|
||||
// FILE: 1.kt
|
||||
<!FINITE_BOUNDS_VIOLATION!>class B<S: A<*>><!>
|
||||
<!FINITE_BOUNDS_VIOLATION_IN_JAVA!>class B<S: A<*>><!>
|
||||
+1
-1
@@ -13,4 +13,4 @@ public interface C<X> extends D<P<X,X>> {}
|
||||
public interface P<Y1, Y2> extends Q<C<Y1>, C<D<Y2>>> {}
|
||||
|
||||
// FILE: 1.kt
|
||||
<!EXPANSIVE_INHERITANCE!>interface P1<YY1, YY2> : P<YY1, YY2><!>
|
||||
<!EXPANSIVE_INHERITANCE_IN_JAVA!>interface P1<YY1, YY2> : P<YY1, YY2><!>
|
||||
Reference in New Issue
Block a user