From 497793c854b9dfbf70c2c23813b6b7f06012bcc2 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 15 Nov 2019 15:00:25 +0200 Subject: Generalize attributes to be comma-separated with arbitrary values Before: x = [string null] After: x = [string, null] --- old-tests/variable/type/buildfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'old-tests') diff --git a/old-tests/variable/type/buildfile b/old-tests/variable/type/buildfile index ef56f19..c6eab8d 100644 --- a/old-tests/variable/type/buildfile +++ b/old-tests/variable/type/buildfile @@ -4,7 +4,7 @@ #[string] str3 = foo #[bool] str3 = false # error: changing str3 type from string to bool -#[bool string] str3 = foo # error: multiple variable types: bool, string +#[bool, string] str3 = foo # error: multiple variable types: bool, string #[junk] jnk = foo # error: unknown variable attribute junk @@ -21,8 +21,8 @@ print $str2 # Value typing. # -#v = [bool string] true # error: multiple value types: string, bool -#v = [string=junk] true # error: unexpected value for attribute string: junk +#v = [bool, string] true # error: multiple value types: string, bool +#v = [string=junk] true # error: unexpected value for attribute string: junk #[string] var = #var = [bool] true # error: confliction variable var type string and value type bool @@ -67,11 +67,11 @@ sub/ print $v5b # 2 } -v6 = [uint64 null] +v6 = [uint64, null] v6 += 00 print $v6 # 0 -v7 = [string null] +v7 = [string, null] v7 += [uint64] 00 print $v7 # 0 -- cgit v1.1