mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-10 15:53:46 +00:00
Add FIR enhancement tests, fix some exceptions / problems around them
Test data and tests themselves are based on compiler/testData/loadJava/compiledJava
This commit is contained in:
10
compiler/testData/loadJava/compiledJava/mutability/LoadIterable.fir.txt
vendored
Normal file
10
compiler/testData/loadJava/compiledJava/mutability/LoadIterable.fir.txt
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
<T> public abstract interface LoadIterable : R|java/lang/Object| {
|
||||
@R|kotlin/annotations/jvm/Mutable|() public abstract operator function getIterable(): R|ft<java/lang/Iterable<ft<T, T?>>, java/lang/Iterable<ft<T, T?>>>|
|
||||
|
||||
public abstract operator function setIterable(@R|kotlin/annotations/jvm/Mutable|() Iterable: R|ft<java/lang/Iterable<ft<T, T?>>, java/lang/Iterable<ft<T, T?>>>|): R|kotlin/Unit|
|
||||
|
||||
@R|kotlin/annotations/jvm/ReadOnly|() public abstract operator function getReadOnlyIterable(): R|ft<java/lang/Iterable<ft<T, T?>>, java/lang/Iterable<ft<T, T?>>>|
|
||||
|
||||
public abstract operator function setReadOnlyIterable(@R|kotlin/annotations/jvm/ReadOnly|() Iterable: R|ft<java/lang/Iterable<ft<T, T?>>, java/lang/Iterable<ft<T, T?>>>|): R|kotlin/Unit|
|
||||
|
||||
}
|
||||
6
compiler/testData/loadJava/compiledJava/mutability/LoadIterableWithConflict.fir.txt
vendored
Normal file
6
compiler/testData/loadJava/compiledJava/mutability/LoadIterableWithConflict.fir.txt
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<T> public abstract interface LoadIterableWithConflict : R|java/lang/Object| {
|
||||
@R|kotlin/annotations/jvm/ReadOnly|() @R|kotlin/annotations/jvm/Mutable|() public abstract operator function getIterable(): R|ft<java/lang/Iterable<ft<T, T?>>, java/lang/Iterable<ft<T, T?>>>|
|
||||
|
||||
public abstract operator function setIterable(@R|kotlin/annotations/jvm/ReadOnly|() @R|kotlin/annotations/jvm/Mutable|() Iterable: R|ft<java/lang/Iterable<ft<T, T?>>, java/lang/Iterable<ft<T, T?>>>|): R|kotlin/Unit|
|
||||
|
||||
}
|
||||
10
compiler/testData/loadJava/compiledJava/mutability/LoadIterableWithNullability.fir.txt
vendored
Normal file
10
compiler/testData/loadJava/compiledJava/mutability/LoadIterableWithNullability.fir.txt
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
<T> public abstract interface LoadIterableWithNullability : R|java/lang/Object| {
|
||||
@R|org/jetbrains/annotations/NotNull|() @R|kotlin/annotations/jvm/Mutable|() public abstract operator function getIterable(): R|ft<java/lang/Iterable<ft<T, T?>>, java/lang/Iterable<ft<T, T?>>>|
|
||||
|
||||
public abstract operator function setIterable(@R|kotlin/annotations/jvm/Mutable|() @R|org/jetbrains/annotations/NotNull|() Iterable: R|ft<java/lang/Iterable<ft<T, T?>>, java/lang/Iterable<ft<T, T?>>>|): R|kotlin/Unit|
|
||||
|
||||
@R|org/jetbrains/annotations/NotNull|() @R|kotlin/annotations/jvm/ReadOnly|() public abstract operator function getReadOnlyIterable(): R|ft<java/lang/Iterable<ft<T, T?>>, java/lang/Iterable<ft<T, T?>>>|
|
||||
|
||||
public abstract operator function setReadOnlyIterable(@R|kotlin/annotations/jvm/ReadOnly|() @R|org/jetbrains/annotations/NotNull|() Iterable: R|ft<java/lang/Iterable<ft<T, T?>>, java/lang/Iterable<ft<T, T?>>>|): R|kotlin/Unit|
|
||||
|
||||
}
|
||||
2
compiler/testData/loadJava/compiledJava/mutability/LoadIterableWithPropagation.fir.txt
vendored
Normal file
2
compiler/testData/loadJava/compiledJava/mutability/LoadIterableWithPropagation.fir.txt
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
public abstract interface LoadIterableWithPropagation : R|java/lang/Object| {
|
||||
}
|
||||
6
compiler/testData/loadJava/compiledJava/mutability/ReadOnlyExtendsWildcard.fir.txt
vendored
Normal file
6
compiler/testData/loadJava/compiledJava/mutability/ReadOnlyExtendsWildcard.fir.txt
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
public abstract interface ReadOnlyExtendsWildcard : R|java/lang/Object| {
|
||||
public abstract operator function bar(): R|kotlin/Unit|
|
||||
|
||||
public abstract operator function foo(@R|kotlin/annotations/jvm/ReadOnly|() x: R|ft<java/util/List<class error: Unexpected type argument: JavaWildcardTypeImpl: PsiType:? extends CharSequence>, java/util/List<class error: Unexpected type argument: JavaWildcardTypeImpl: PsiType:? extends CharSequence>?>|!, @R|org/jetbrains/annotations/NotNull|() y: R|ft<java/lang/Comparable<*>, java/lang/Comparable<*>>|): R|kotlin/Unit|
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user