diff options
| -rw-r--r-- | alv/type.moon | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/alv/type.moon b/alv/type.moon index 686f6c0..ecd1066 100644 --- a/alv/type.moon +++ b/alv/type.moon @@ -87,6 +87,7 @@ class Struct extends Type "{#{inner}}" eq: (a, b) => + return false unless (type a) == (type b) for key, type in pairs @types if not type\eq a[key], b[key] return false @@ -120,6 +121,7 @@ class Array extends Type "[#{inner}]" eq: (a, b) => + return false unless (type a) == (type b) for i=1, @size if not @type\eq a[i], b[i] return false |
