>>> throw Exception("hi there") java.lang.Exception: hi there at Line_0.(Line_0.kts:1) >>> fun foo() = 2 >>> foo() 2 >>> fun bar(): Nothing = throw AssertionError() >>> bar() java.lang.AssertionError at Line_3.bar(Line_3.kts:1) at Line_4.(Line_4.kts:1)