mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
19 lines
280 B
Kotlin
Vendored
19 lines
280 B
Kotlin
Vendored
// !LANGUAGE: -NoConstantValueAttributeForNonConstVals
|
|
//ALLOW_AST_ACCESS
|
|
|
|
package test
|
|
val nonConstVal1 = 1
|
|
|
|
class C {
|
|
val nonConstVal2 = 2
|
|
|
|
companion object {
|
|
val nonConstVal3 = 3
|
|
}
|
|
}
|
|
|
|
interface I {
|
|
companion object {
|
|
val nonConstVal4 = 4
|
|
}
|
|
} |