structural typing: type of an empty object is empty
- empty.c type_name -> 'empty'
- lf_type: with structural typing the type of an object IS its
structure, so an object with no members has the empty type -- both
the canonical 'empty' and a fresh '{}'
- ffi test expectation updated; 84/84 tests
This commit is contained in:
1 parent
0292d88a53
commit
c7a87d05e2
3 files changed
+19
-3
No files matched your search
+1
-1
@@ -120,7 +120,7 @@ check "ffi-abs" "abs(-42) = 42" "`echo "$out" | sed -n 5p`"
|
||||
|
||||
out=`$BIN tests/ffi.cat`
|
||||
check "ffi-badload-empty" "bad load empty: true" "`echo "$out" | sed -n 1p`"
|
||||
check "ffi-badload-type" "bad load type: object" "`echo "$out" | sed -n 2p`"
|
||||
check "ffi-badload-type" "bad load type: empty" "`echo "$out" | sed -n 2p`"
|
||||
check "ffi-bound" "pow bound: true" "`echo "$out" | sed -n 3p`"
|
||||
check "ffi-missing-sym" "missing sym empty: true" "`echo "$out" | sed -n 4p`"
|
||||
check "ffi-badsig" "bad sig empty: true" "`echo "$out" | sed -n 5p`"
|
||||
|
||||
Reference in new issue
Block a user