Files
kotlin/compiler/testData/repl/exceptionInValueToString.repl
Ilya Chernikov 15ccd28e2e Switch old IDE/CLI repls to the new infrastructure
should also fix #KT-5822
2017-05-03 18:11:45 +02:00

6 lines
240 B
Plaintext
Vendored

>>> class B { override fun toString(): String { return foo() } ; fun foo(): String { return error("message") } }
>>> B().toString()
java.lang.IllegalStateException: message
at Line_0$B.foo(Line_0.kts:1)
at Line_0$B.toString(Line_0.kts:1)