Make IsInstance return proper bool, fixes GH-3686. (#3688)

* Make IsInstance return proper bool, fixes GH-3686.

* Proper fix.
This commit is contained in:
Nikolay Igotti
2019-12-18 16:57:26 +03:00
committed by GitHub
parent e2e85d15c6
commit bcead48fde
3 changed files with 6 additions and 1 deletions
@@ -70,6 +70,9 @@ int main(void) {
__ kotlin.root.testNullableWithNulls(nullableIntNull, nullableUnitNull);
printf("IsInstance1 = %s\n", __ IsInstance(singleton.pinned, __ kotlin.root.Singleton._type()) ? "PASS" : "FAIL");
printf("IsInstance2 = %s\n", !(__ IsInstance(singleton.pinned, __ kotlin.root.Codeable._type())) ? "PASS" : "FAIL");
testVector128();
__ DisposeStablePointer(singleton.pinned);