Add test on obsolete issue
#KT-9203 Obsolete
This commit is contained in:
@@ -0,0 +1,10 @@
|
|||||||
|
// FULL_JDK
|
||||||
|
|
||||||
|
import java.util.stream.Collectors
|
||||||
|
import java.util.stream.IntStream
|
||||||
|
|
||||||
|
fun main(args: Array<String>) {
|
||||||
|
val xs = IntStream.<!INTERFACE_STATIC_METHOD_CALL_FROM_JAVA6_TARGET!>range<!>(0, 10).mapToObj { it.toString() }
|
||||||
|
.collect(Collectors.toList())
|
||||||
|
xs[0]
|
||||||
|
}
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
package
|
||||||
|
|
||||||
|
public fun main(/*0*/ args: kotlin.Array<kotlin.String>): kotlin.Unit
|
||||||
@@ -0,0 +1,18 @@
|
|||||||
|
public interface Collector<T, R>
|
||||||
|
|
||||||
|
class A<out T> {
|
||||||
|
fun foo(): T = null!!
|
||||||
|
}
|
||||||
|
|
||||||
|
public fun <T> toList(): Collector<T, A<T>> = null!!
|
||||||
|
|
||||||
|
interface Stream<T> {
|
||||||
|
public fun <R> collect(collector: Collector<in T, R>): R
|
||||||
|
}
|
||||||
|
fun stream(): Stream<String> = null!!
|
||||||
|
|
||||||
|
fun main(args: Array<String>) {
|
||||||
|
val stream: Stream<String> = stream()
|
||||||
|
val xs = stream.collect(toList())
|
||||||
|
xs.foo()
|
||||||
|
}
|
||||||
@@ -0,0 +1,26 @@
|
|||||||
|
package
|
||||||
|
|
||||||
|
public fun main(/*0*/ args: kotlin.Array<kotlin.String>): kotlin.Unit
|
||||||
|
public fun stream(): Stream<kotlin.String>
|
||||||
|
public fun </*0*/ T> toList(): Collector<T, A<T>>
|
||||||
|
|
||||||
|
public final class A</*0*/ out T> {
|
||||||
|
public constructor A</*0*/ out T>()
|
||||||
|
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||||
|
public final fun foo(): T
|
||||||
|
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||||
|
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||||
|
}
|
||||||
|
|
||||||
|
public interface Collector</*0*/ T, /*1*/ R> {
|
||||||
|
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||||
|
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||||
|
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||||
|
}
|
||||||
|
|
||||||
|
public interface Stream</*0*/ T> {
|
||||||
|
public abstract fun </*0*/ R> collect(/*0*/ collector: Collector<in T, R>): R
|
||||||
|
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||||
|
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||||
|
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||||
|
}
|
||||||
@@ -8680,6 +8680,18 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest {
|
|||||||
doTest(fileName);
|
doTest(fileName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("kt9203.kt")
|
||||||
|
public void testKt9203() throws Exception {
|
||||||
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/generics/kt9203.kt");
|
||||||
|
doTest(fileName);
|
||||||
|
}
|
||||||
|
|
||||||
|
@TestMetadata("kt9203_1.kt")
|
||||||
|
public void testKt9203_1() throws Exception {
|
||||||
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/generics/kt9203_1.kt");
|
||||||
|
doTest(fileName);
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("kt9985.kt")
|
@TestMetadata("kt9985.kt")
|
||||||
public void testKt9985() throws Exception {
|
public void testKt9985() throws Exception {
|
||||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/generics/kt9985.kt");
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/generics/kt9985.kt");
|
||||||
|
|||||||
+12
@@ -8680,6 +8680,18 @@ public class DiagnosticsUsingJavacTestGenerated extends AbstractDiagnosticsUsing
|
|||||||
doTest(fileName);
|
doTest(fileName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("kt9203.kt")
|
||||||
|
public void testKt9203() throws Exception {
|
||||||
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/generics/kt9203.kt");
|
||||||
|
doTest(fileName);
|
||||||
|
}
|
||||||
|
|
||||||
|
@TestMetadata("kt9203_1.kt")
|
||||||
|
public void testKt9203_1() throws Exception {
|
||||||
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/generics/kt9203_1.kt");
|
||||||
|
doTest(fileName);
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("kt9985.kt")
|
@TestMetadata("kt9985.kt")
|
||||||
public void testKt9985() throws Exception {
|
public void testKt9985() throws Exception {
|
||||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/generics/kt9985.kt");
|
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/generics/kt9985.kt");
|
||||||
|
|||||||
Reference in New Issue
Block a user