Move codegen tests on old language versions under oldLanguageVersions/
This directory is skipped in JVM IR test generator, so they won't show up as failed anymore. Note that only failing tests are moved to oldLanguageVersions/. Tests which already pass are still being run. It may be useful not to break them in case we _do_ need to support some pre-1.3 language feature switches in JVM IR.
This commit is contained in:
-22
@@ -1,22 +0,0 @@
|
||||
// !LANGUAGE: -InlineConstVals
|
||||
// IGNORE_BACKEND: JVM_IR
|
||||
// FILE: Foo.kt
|
||||
|
||||
private const val OUTER_PRIVATE = 20
|
||||
|
||||
class Foo {
|
||||
companion object {
|
||||
private const val LOCAL_PRIVATE = 20
|
||||
}
|
||||
|
||||
fun foo() {
|
||||
// Access to the property use getstatic on the backed field
|
||||
LOCAL_PRIVATE
|
||||
// Access to the property requires an invokestatic
|
||||
OUTER_PRIVATE
|
||||
}
|
||||
}
|
||||
|
||||
// 1 INVOKESTATIC
|
||||
// 1 PUTSTATIC
|
||||
// 2 GETSTATIC
|
||||
Reference in New Issue
Block a user