Use 'name-hash' mangling scheme
'-' is allowed as a name character both in JVM and in Dalvik, but can't be a part of a Java identifier.
This commit is contained in:
committed by
Ilya Gorbunov
parent
a56d1d3ce8
commit
99498eb7b8
+2
-2
@@ -26,10 +26,10 @@ fun box(): String {
|
||||
}
|
||||
|
||||
for (entry in stackTrace) {
|
||||
if (entry.methodName.startsWith("test$")) {
|
||||
if (entry.methodName.startsWith("test")) {
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
|
||||
throw AssertionError()
|
||||
throw AssertionError(stackTrace.asList().toString())
|
||||
}
|
||||
Reference in New Issue
Block a user