Files
kotlin-fork/compiler/testData/diagnostics/tests/inner/nestedClassNotAllowed_before.kt
T
Dmitry Savvinov 5cb949ad7f Fix language features in tests for gradual migration to 1.3 (part 2)
In 1.3, due to changes in language, testdata for some tests can be
different from 1.2

We want to simlultaneously test both versions, so instead of fixing
language version in such tests, we split them into two: one with fixed
1.2, another with fixed 1.3
2018-07-05 10:42:49 +03:00

27 lines
407 B
Kotlin
Vendored

// !LANGUAGE: -NestedClassesInEnumEntryShouldBeInner
class A {
inner class B {
<!NESTED_CLASS_NOT_ALLOWED!>class C<!>
}
fun foo() {
class B {
<!NESTED_CLASS_NOT_ALLOWED!>class C<!>
}
}
}
fun foo() {
class B {
<!NESTED_CLASS_NOT_ALLOWED!>class C<!>
}
}
enum class E {
E1 {
<!NESTED_CLASS_DEPRECATED!>class D<!>
}
}