fixed fail() method, working around a compiler issue (should not be trying to invoke a private method)

This commit is contained in:
James Strachan
2012-03-12 10:40:09 +00:00
parent 1ae0910b07
commit f10a110edb
+2 -1
View File
@@ -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)
}
}