[KT-4124] Refactor super calls and fix calls to Any::equals

This commit is contained in:
Alexey Andreev
2016-02-18 19:49:30 +03:00
parent 6adcafafbb
commit d83f926658
12 changed files with 149 additions and 118 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ package kotlin
// This file should be excluded from tests using StdLib, as these methods conflict with corresponding methods from kotlin.test
// see StdLibTestBase.removeAdHocAssertions
fun fail(message: String? = null): Nothing = throw Exception(message)
fun fail(message: String? = null): Nothing = js("throw new Error(message)")
fun <T> assertEquals(expected: T, actual: T, message: String? = null) {
if (expected != actual) {