From f10a110edbdd2c40157f3a974648efa02166cd94 Mon Sep 17 00:00:00 2001 From: James Strachan Date: Mon, 12 Mar 2012 10:40:09 +0000 Subject: [PATCH] fixed fail() method, working around a compiler issue (should not be trying to invoke a private method) --- libraries/stdlib/src/test/Test.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libraries/stdlib/src/test/Test.kt b/libraries/stdlib/src/test/Test.kt index e4af2cc5bb1..646b97ee938 100644 --- a/libraries/stdlib/src/test/Test.kt +++ b/libraries/stdlib/src/test/Test.kt @@ -158,6 +158,7 @@ class DefaultAsserter() : Asserter { } } override fun fail(message : String) { - throw AssertionError(message) + // TODO work around compiler bug as it should never try call the private constructor + throw AssertionError(message as Object) } } \ No newline at end of file