Initial support of @JvmDefault

(cherry picked from commit fe45eb2)
This commit is contained in:
Mikhael Bogdanov
2018-02-20 18:02:54 +01:00
parent 33577b4078
commit a28a0beaea
50 changed files with 322 additions and 256 deletions

View File

@@ -1,5 +1,6 @@
// !API_VERSION: 1.3
// JVM_TARGET: 1.8
// KOTLIN_CONFIGURATION_FLAGS: +JVM.JVM8_TARGET_WITH_DEFAULTS
// WITH_RUNTIME
// FULL_JDK
// There should be no DefaultImpls method for MutableMap.remove(K;V)
@@ -11,6 +12,7 @@ class B : A<String, String>, java.util.AbstractMap<String, String>() {
}
interface C<K, V> : MutableMap<K, V> {
@kotlin.annotations.JvmDefault
override fun remove(key: K, value: V) = true
}