Additional tests and fixes for function name mangling

This commit is contained in:
Dmitry Petrov
2018-08-22 15:04:44 +03:00
committed by Ilya Gorbunov
parent 99498eb7b8
commit a205019156
11 changed files with 55 additions and 16 deletions
@@ -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"))