I’ve just experimented a bit with the Kotlin REPL in IntelliJ IDEA 15 (Kotlin 1.0.0-beta-4584). But it doesn’t work properly (or I do something wrong). Take a look at the following screen shot:
If I try the same in http://try.kotlinlang.org everything works as expected.
Are there any tricks to get it working in IntelliJ or do I have to wait for a bug fix?