[goalc] Fix error when putting #f in an array of symbols (#1804)

This commit is contained in:
water111
2022-08-26 15:54:29 -04:00
committed by GitHub
parent 24590ec670
commit bc3cd2cf72
3 changed files with 10 additions and 3 deletions
@@ -26,6 +26,9 @@
(-> type parent parent parent)
(-> type parent parent parent parent))
(define *array-of-syms* (new 'static 'array symbol 2 'asdf #f))
(format #t "array: ~A ~A~%" (-> *array-of-syms* 0) (-> *array-of-syms* 1))
#|
empty pair: () () () #t #f\
empty pair type: pair
@@ -34,4 +37,5 @@ basic types: type symbol string function
bools: #t #f #t #f #f #t
zero: 0
parent of type: basic structure object object
array: asdf #f
|#
+2 -1
View File
@@ -51,5 +51,6 @@ TEST_F(Jak2GoalcTests, All) {
"basic types: type symbol string function\n"
"bools: #t #f #t #f #f #t\n"
"zero: 0\n"
"parent of type: basic structure object object\n0\n"});
"parent of type: basic structure object object\n"
"array: asdf #f\n0\n"});
}