Report CLASS_OBJECT_NOT_ALLOWED for local classes

This commit is contained in:
Andrey Breslav
2014-02-26 19:38:56 +04:00
parent 71bbc62414
commit a7135fee06
3 changed files with 15 additions and 1 deletions
@@ -0,0 +1,9 @@
fun test() {
class A {
<!CLASS_OBJECT_NOT_ALLOWED!>class object {}<!>
}
object {
<!CLASS_OBJECT_NOT_ALLOWED!>class object {}<!>
}
}