Additional tests and fixes for function name mangling
This commit is contained in:
committed by
Ilya Gorbunov
parent
99498eb7b8
commit
a205019156
Vendored
+5
@@ -11,6 +11,10 @@ fun Id.test() {
|
||||
if (id != "OK") throw AssertionError()
|
||||
}
|
||||
|
||||
fun Id?.test() {
|
||||
if (this != null) throw AssertionError()
|
||||
}
|
||||
|
||||
fun Name.test() {
|
||||
if (name != "OK") throw AssertionError()
|
||||
}
|
||||
@@ -41,6 +45,7 @@ class Outer {
|
||||
|
||||
fun box(): String {
|
||||
Id("OK").test()
|
||||
null.test()
|
||||
Name("OK").test()
|
||||
test(Password("OK"))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user