mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 08:31:29 +00:00
Before this change generic signature wasn't written because of wrong assumption about it absence in all cases where we replace generic parameter with Object
13 lines
354 B
Java
Vendored
13 lines
354 B
Java
Vendored
import java.util.*;
|
|
|
|
public class J {
|
|
|
|
private static class MyMap<K, V> extends KMap<K, V> {}
|
|
|
|
public static String foo() {
|
|
Map<String, Integer> collection = new MyMap<String, Integer>();
|
|
if (!collection.containsKey("ABCDE")) return "fail 1";
|
|
if (!collection.containsValue(1)) return "fail 2";
|
|
return "OK";
|
|
}
|
|
} |