From ae20570f2ad55b2fa8e71cf450457cb9c4b21b1b Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 18 Apr 2016 10:17:37 +0200 Subject: Add support for using value attributes in eval context For example: if ($x == [null]) Or: if ([uint64] 01 == [uint64] 1) --- tests/variable/override/buildfile | 2 +- tests/variable/qualified/buildfile | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/variable') diff --git a/tests/variable/override/buildfile b/tests/variable/override/buildfile index 18c9831..c090e81 100644 --- a/tests/variable/override/buildfile +++ b/tests/variable/override/buildfile @@ -1,4 +1,4 @@ -if ("$t" != "") +if ($t != [null]) { [$t] v = [null] } diff --git a/tests/variable/qualified/buildfile b/tests/variable/qualified/buildfile index 90e75c7..870b808 100644 --- a/tests/variable/qualified/buildfile +++ b/tests/variable/qualified/buildfile @@ -1,5 +1,5 @@ -#v = (:bar) # error: expected name instead of ':' -#v = (foo:) # error: scope/target expected after ':' +#v = (foo:) # error: variable name expected before ':' +#v = (:bar) # error: scope/target expected after ':' print (foo:bar) print (foo :bar) -- cgit v1.1