mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-03-30 08:31:26 +00:00
Add MutableMap.remove(K, V) as built-in declaration
Use PlatformDependent annotation to guarantee it's only be available for JDK8 Also adjust type-safe bridges and mutable collection stubs generation
This commit is contained in:
15
compiler/testData/loadJava8/sourceJava/MapRemove.java
vendored
Normal file
15
compiler/testData/loadJava8/sourceJava/MapRemove.java
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
package test;
|
||||
import java.util.Map;
|
||||
public class MapRemove {
|
||||
public abstract class MyMap<K, V> implements Map<K, V> {
|
||||
public boolean remove(Object x, Object y) { return false; }
|
||||
}
|
||||
|
||||
public abstract class MyMapString implements Map<String, Integer> {
|
||||
public boolean remove(Object x, Object y) { return false; }
|
||||
}
|
||||
|
||||
public abstract class MyMapStringInvalid implements Map<String, Integer> {
|
||||
public boolean remove(String x, Integer y) { return false; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user