aboutsummaryrefslogtreecommitdiff
path: root/old-tests
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2019-11-15 15:00:25 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2019-11-15 15:00:25 +0200
commit497793c854b9dfbf70c2c23813b6b7f06012bcc2 (patch)
treebe2ec7600889314efbaef22037c094e32b3af6e5 /old-tests
parent417497632ddfa2bdc17688703c24ca3fd60af318 (diff)
Generalize attributes to be comma-separated with arbitrary values
Before: x = [string null] After: x = [string, null]
Diffstat (limited to 'old-tests')
-rw-r--r--old-tests/variable/type/buildfile10
1 files changed, 5 insertions, 5 deletions
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