From 78406602be0ce392224dd3735ad9a9442df572f7 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 20 Oct 2016 14:03:05 +0200 Subject: When assigning always ignore existing value type For example: x = [uint64] 1 x = a # Ok. --- tests/variable/type/buildfile | 4 ++++ tests/variable/type/test.out | 1 + 2 files changed, 5 insertions(+) (limited to 'tests/variable') 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 -- cgit v1.1