Move java 8+defaults tests to separate folder

This commit is contained in:
Mikhael Bogdanov
2017-01-12 16:11:30 +01:00
parent 0a363fd1a5
commit d278a5c6d5
19 changed files with 121 additions and 112 deletions
-21
View File
@@ -1,21 +0,0 @@
// JVM_TARGET: 1.8
// KOTLIN_CONFIGURATION_FLAGS: +JVM.JVM8_TARGET_WITH_DEFAULTS
interface Z<T> {
fun test(p: T): T {
return p
}
}
open class ZImpl : Z<String>
class ZImpl2 : ZImpl() {
override fun test(p: String): String {
return super.test(p)
}
}
fun box(): String {
return ZImpl2().test("OK")
}