Rename test files to scripts to trigger proper scripting initialization

fix generation config accordingly
This commit is contained in:
Ilya Chernikov
2019-02-04 14:56:23 +01:00
parent 2b67dbe8dd
commit 2c02ee3d29
10 changed files with 308 additions and 352 deletions
@@ -0,0 +1,23 @@
// !LANGUAGE: -LocalDelegatedProperties
// FILE: script.kts
import kotlin.reflect.KProperty
class Delegate {
operator fun getValue(t: Any?, p: KProperty<*>): Int = 1
}
fun foo(): Int {
val prop: Int <!UNSUPPORTED_FEATURE!>by Delegate()<!>
val prop2: Int <!UNSUPPORTED_FEATURE!>by <!DELEGATE_SPECIAL_FUNCTION_MISSING!>123<!><!>
return prop + prop2
}
val prop: Int by Delegate()
val prop2: Int by <!DELEGATE_SPECIAL_FUNCTION_MISSING!>123<!>
prop + prop2