mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
Move test-related code to org.jetbrains.kotlin.test, also move some tests to packages with better names
16 lines
461 B
Java
Vendored
16 lines
461 B
Java
Vendored
package test;
|
|
|
|
import java.lang.Number;
|
|
import java.util.*;
|
|
|
|
import jet.runtime.typeinfo.KotlinSignature;
|
|
import org.jetbrains.kotlin.jvm.compiler.annotation.ExpectLoadError;
|
|
|
|
public class ConflictingProjectionKind {
|
|
@ExpectLoadError("Projection kind 'in' is conflicting with variance of kotlin.List")
|
|
@KotlinSignature("fun foo(list: List<in Number>)")
|
|
public void foo(List<Number> list) {
|
|
throw new UnsupportedOperationException();
|
|
}
|
|
}
|