Remove usages of JVM target 1.6 from compiler tests
#KT-45165
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
@file:CompilerOptions("-jvm-target", "1.8", "-Xabi-stability=unstable")
|
||||
|
||||
interface Test {
|
||||
fun print()
|
||||
fun printSuper() = println("Hi from super")
|
||||
}
|
||||
|
||||
class TestImpl : Test {
|
||||
override fun print() = println("Hi from sub")
|
||||
}
|
||||
|
||||
inline fun printRandom() = println("Hi from random")
|
||||
|
||||
TestImpl().run {
|
||||
print()
|
||||
printSuper()
|
||||
printRandom()
|
||||
}
|
||||
Reference in New Issue
Block a user