Skip to content

Commit

Permalink
Nested classes are static by default; to have non-static nested class…
Browse files Browse the repository at this point in the history
…es, the 'inner' keyword must be applied

Fixes issue reaster#14
  • Loading branch information
Thomas Keller committed Jan 27, 2020
1 parent 8b554a2 commit 69d92f1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ class KotlinEmitter extends CodeEmitter
out << '\n' << tabs
if (c.scope && c.scope != 'public')
out << c.scope << ' '
if (c.isStatic())
out << 'static '
if (!c.isStatic())
out << 'inner '
if (c.isAbstract())
out << 'abstract '
if (c.data)
Expand Down

0 comments on commit 69d92f1

Please sign in to comment.