fix tests in org.jetbrains.kotlin.js.test.semantics
This commit is contained in:
+6
-6
@@ -2,29 +2,29 @@ package foo
|
||||
|
||||
public class A
|
||||
|
||||
fun A(a: Int){}
|
||||
internal fun A(a: Int){}
|
||||
|
||||
public class B(a: Int)
|
||||
|
||||
fun B(){}
|
||||
internal fun B(){}
|
||||
|
||||
fun C(a: Int){}
|
||||
internal fun C(a: Int){}
|
||||
|
||||
public class C
|
||||
|
||||
fun D(){}
|
||||
internal fun D(){}
|
||||
|
||||
public class D(a: Int)
|
||||
|
||||
//Testing
|
||||
|
||||
fun testClass(name: String, f: () -> Unit) {
|
||||
internal fun testClass(name: String, f: () -> Unit) {
|
||||
val fs = f.toString()
|
||||
|
||||
if ("$name(" !in fs) throw Exception("Name of class '$name' unexpectedly mangled: $fs")
|
||||
}
|
||||
|
||||
fun testFun(name: String, f: () -> Unit) {
|
||||
internal fun testFun(name: String, f: () -> Unit) {
|
||||
val fs = f.toString()
|
||||
|
||||
if ("$name(" in fs) throw Exception("Name of fun '$name' unexpectedly not mangled: $fs")
|
||||
|
||||
Reference in New Issue
Block a user