Add support for @CompilerOptions annotation for supplying compiler

options from scripts.

#KT-34274 fixed
This commit is contained in:
Efeturi Money
2019-10-21 18:06:29 +02:00
committed by Ilya Chernikov
parent 8c6916af52
commit 35d7bb4a26
4 changed files with 63 additions and 10 deletions
@@ -0,0 +1,18 @@
@file:CompilerOptions("-jvm-target", "1.6")
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()
}