From 45293450dae9be9a56164e44fda0e28ed94113a9 Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Tue, 8 Oct 2019 16:01:26 +0200 Subject: [PATCH] :art: Test not object --- src/lib/opfunc.c | 2 +- tests/tree/not_object.gw | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 tests/tree/not_object.gw diff --git a/src/lib/opfunc.c b/src/lib/opfunc.c index 0765b0b4..0b6045c7 100644 --- a/src/lib/opfunc.c +++ b/src/lib/opfunc.c @@ -66,7 +66,7 @@ OP_CHECK(opck_unary_meta) { OP_CHECK(opck_unary_meta2) { const Exp_Unary* unary = (Exp_Unary*)data; exp_self(unary)->meta = ae_meta_value; - return env->gwion->type[et_int]; + return env->gwion->type[et_bool]; } OP_CHECK(opck_unary) { diff --git a/tests/tree/not_object.gw b/tests/tree/not_object.gw new file mode 100644 index 00000000..f9837d88 --- /dev/null +++ b/tests/tree/not_object.gw @@ -0,0 +1,2 @@ +Object o; +<<< !o >>>; -- 2.43.0