mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-03-10 15:51:01 +00:00
18 lines
420 B
Java
Vendored
18 lines
420 B
Java
Vendored
// JAVAC_EXPECTED_FILE
|
|
package test;
|
|
|
|
public interface WrongNumberOfGenericParameters {
|
|
|
|
interface Zero {}
|
|
interface One<T> {}
|
|
|
|
Zero<String> z();
|
|
|
|
One o0();
|
|
// Our Java resolve supposes that return type has exactly one argument
|
|
One<String, String> o2();
|
|
|
|
// This does not produce the expected result, because IDEA thinks Two<X> is a raw type
|
|
interface Two<P, Q> {}
|
|
Two<String> t1();
|
|
} |