Add tests for type enhancement uncluding with compiled java
This commit is contained in:
Vendored
+14
@@ -0,0 +1,14 @@
|
||||
package test
|
||||
|
||||
public open class Basic_DisabledImprovements {
|
||||
public constructor Basic_DisabledImprovements()
|
||||
public/*package*/ open fun </*0*/ R : kotlin.Any!, /*1*/ @org.jetbrains.annotations.NotNull _A : R!, /*2*/ @org.jetbrains.annotations.Nullable K : kotlin.Any!> foo(/*0*/ p0: R!): kotlin.Unit
|
||||
|
||||
public interface G</*0*/ @org.jetbrains.annotations.NotNull T : kotlin.Any!> {
|
||||
public abstract fun </*0*/ @org.jetbrains.annotations.NotNull R : kotlin.Any!> foo(/*0*/ p0: R!): kotlin.Unit
|
||||
}
|
||||
|
||||
public interface G1</*0*/ T : kotlin.Any!, /*1*/ E : T!, /*2*/ @org.jetbrains.annotations.NotNull X : kotlin.Any!> {
|
||||
public abstract fun </*0*/ R : kotlin.Any!, /*1*/ @org.jetbrains.annotations.Nullable _A : R!> foo(/*0*/ p0: R!): kotlin.Unit
|
||||
}
|
||||
}
|
||||
@@ -4,15 +4,14 @@ package test;
|
||||
|
||||
import org.jetbrains.annotations.*;
|
||||
|
||||
public class Basic {
|
||||
interface G<T> {
|
||||
}
|
||||
public class Basic<T extends @NotNull Object> {
|
||||
interface G<T> extends G2<@NotNull T, @NotNull String> { }
|
||||
|
||||
interface G2<A, B> {
|
||||
}
|
||||
interface G2<A, B> { }
|
||||
|
||||
public interface MyClass<TT> {
|
||||
void f(G<@NotNull String> p);
|
||||
void f(G2<@Nullable String, @NotNull Integer> p);
|
||||
void f1(G<@NotNull String> p);
|
||||
G2<@Nullable String, @NotNull Integer> f2();
|
||||
<T extends @NotNull Object> void f3(@NotNull T x);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,16 +1,17 @@
|
||||
package test
|
||||
|
||||
public open class Basic {
|
||||
public constructor Basic()
|
||||
public open class Basic</*0*/ T : @org.jetbrains.annotations.NotNull kotlin.Any> {
|
||||
public constructor Basic</*0*/ T : @org.jetbrains.annotations.NotNull kotlin.Any>()
|
||||
|
||||
public/*package*/ interface G</*0*/ T : kotlin.Any!> {
|
||||
public/*package*/ interface G</*0*/ T : kotlin.Any!> : test.Basic.G2<@org.jetbrains.annotations.NotNull T, @org.jetbrains.annotations.NotNull kotlin.String> {
|
||||
}
|
||||
|
||||
public/*package*/ interface G2</*0*/ A : kotlin.Any!, /*1*/ B : kotlin.Any!> {
|
||||
}
|
||||
|
||||
public interface MyClass</*0*/ TT : kotlin.Any!> {
|
||||
public abstract fun f(/*0*/ p0: test.Basic.G2<@org.jetbrains.annotations.Nullable kotlin.String?, @org.jetbrains.annotations.NotNull kotlin.Int>!): kotlin.Unit
|
||||
public abstract fun f(/*0*/ p0: test.Basic.G<@org.jetbrains.annotations.NotNull kotlin.String>!): kotlin.Unit
|
||||
public abstract fun f1(/*0*/ p0: test.Basic.G<@org.jetbrains.annotations.NotNull kotlin.String>!): kotlin.Unit
|
||||
public abstract fun f2(): test.Basic.G2<@org.jetbrains.annotations.Nullable kotlin.String?, @org.jetbrains.annotations.NotNull kotlin.Int>!
|
||||
public abstract fun </*0*/ T : @org.jetbrains.annotations.NotNull kotlin.Any> f3(/*0*/ @org.jetbrains.annotations.NotNull p0: @org.jetbrains.annotations.NotNull T): kotlin.Unit
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user