Prohibit non-inner classes in enum entries since 1.3

This commit is contained in:
Dmitry Petrov
2017-09-08 10:51:22 +03:00
parent ea91a0794d
commit ba2c3136bb
12 changed files with 79 additions and 15 deletions
@@ -3,13 +3,13 @@ package a
enum class C {
E1, E2, E3 {
object O_O
<!NESTED_CLASS_NOT_ALLOWED_SINCE_1_3!>object O_O<!>
fun b() {
O_O
}
class G
<!NESTED_CLASS_NOT_ALLOWED_SINCE_1_3!>class G<!>
},
E4 {