Minor, add more tests on signature-polymorphic calls

Add a test on null (since null is a special case in the
PolymorphicSignature spec), and a test on a call without assignment to a
variable
This commit is contained in:
Alexander Udalov
2019-12-13 20:01:49 +03:00
parent 64d40b4743
commit 7eda60d57e
6 changed files with 56 additions and 0 deletions
@@ -43,5 +43,8 @@ fun box(): String {
val result3 = (o.p).handle.invoke(C(), "Hello", 0.01, Derived()) as String
if (result1 != result3) return "Fail 3: $result1 != $result3"
// Check cast expression without assignment to a variable
mh.invoke(C(), "", 0.01, Derived()) as String
return "OK"
}