diff options
| author | Mel <einebeere@gmail.com> | 2022-05-20 20:28:43 +0200 |
|---|---|---|
| committer | Mel <einebeere@gmail.com> | 2022-05-20 20:29:09 +0200 |
| commit | 25eb5ca1b0a8b9b35f36deedec4901bca02bf43e (patch) | |
| tree | 524bb9f1c234016c07ec3a0de8003c200db65fe0 | |
| parent | 6fe6e6546c4801f850d943c699fccdd5dc6ea723 (diff) | |
| download | jinx-25eb5ca1b0a8b9b35f36deedec4901bca02bf43e.tar.zst jinx-25eb5ca1b0a8b9b35f36deedec4901bca02bf43e.zip | |
Make empty value of Type equal Null
| -rw-r--r-- | pkg/lang/vm/value/type.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/lang/vm/value/type.go b/pkg/lang/vm/value/type.go index cd518d9..f294aaf 100644 --- a/pkg/lang/vm/value/type.go +++ b/pkg/lang/vm/value/type.go @@ -3,12 +3,12 @@ package value type TypeKind int const ( - IntType TypeKind = iota + NullType TypeKind = iota + IntType FloatType StringType BoolType ArrayType - NullType FunctionType ObjectType |
