Nested classes are no more allowed inside any anonymous objects or local classes #KT-13510 Fixed

(cherry picked from commit 5c3ec6c)
This commit is contained in:
Mikhail Glukhikh
2016-08-25 19:48:57 +03:00
committed by Mikhail Glukhikh
parent f8039249c6
commit cd717467f0
5 changed files with 30 additions and 2 deletions
@@ -0,0 +1,11 @@
class X {
val foo = object {
<!NESTED_CLASS_NOT_ALLOWED!>class Foo<!>
}
fun test() {
object {
<!NESTED_CLASS_NOT_ALLOWED!>class Foo<!>
}
}
}