aboutsummaryrefslogtreecommitdiff
path: root/tests/variable
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-10-20 14:03:05 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-11-04 09:26:33 +0200
commit78406602be0ce392224dd3735ad9a9442df572f7 (patch)
tree3cda9698251f566d5685fe707220d3cbeec3af0e /tests/variable
parent53d649dec4c98c9f08b963ed913685a83d68e7e1 (diff)
When assigning always ignore existing value type
For example: x = [uint64] 1 x = a # Ok.
Diffstat (limited to 'tests/variable')
-rw-r--r--tests/variable/type/buildfile4
-rw-r--r--tests/variable/type/test.out1
2 files changed, 5 insertions, 0 deletions
diff --git a/tests/variable/type/buildfile b/tests/variable/type/buildfile
index 85c18e1..a22cddd 100644
--- a/tests/variable/type/buildfile
+++ b/tests/variable/type/buildfile
@@ -77,4 +77,8 @@ print $v7 # 0
print [uint64] 00 # 0
+v8 = [uint64] 01
+v8 = abc
+print $v8 # abc
+
./:
diff --git a/tests/variable/type/test.out b/tests/variable/type/test.out
index 4aea91f..5218221 100644
--- a/tests/variable/type/test.out
+++ b/tests/variable/type/test.out
@@ -9,3 +9,4 @@ foobarbaz
0
0
0
+abc