Looks like the REPL fails when attempting to eval ...
# build-tools
r
Looks like the REPL fails when attempting to eval top level declarations. Presumably because expressions are wrapped in some kind of object to get compiled and evaled:
Copy code
> kotlinc

Welcome to Kotlin version 1.1.3-2 (JRE 1.8.0_131-8u131-b11-2ubuntu1.16.04.3-b11)
Type :help for help, :quit for quit
>>> typealias X = String
error: nested and local type aliases are not supported
typealias X = String
^