summary refs log tree commit diff stats
path: root/tests/macros
diff options
context:
space:
mode:
authorArne Döring <arne.doering@gmx.net>2019-05-08 09:36:27 +0200
committerAndreas Rumpf <rumpf_a@web.de>2019-05-08 09:36:27 +0200
commit34405db80f5e9e77692fbbf660465b6fb1cd5c4a (patch)
tree7f142dc3152139d55e69046b0e3af5cf1b24444d /tests/macros
parenta5fb0acf5f0cd9ea4fcf5ea615006580ae448dfd (diff)
downloadNim-34405db80f5e9e77692fbbf660465b6fb1cd5c4a.tar.gz
forbid casting to bare unchecked array (#11186)
* fixes #11180, forbid casting to unchecked array.
* allow UncheckedArray as param
Diffstat (limited to 'tests/macros')
-rw-r--r--tests/macros/tmacros_issues.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/macros/tmacros_issues.nim b/tests/macros/tmacros_issues.nim
index 657f30fc4..d32b6a2a2 100644
--- a/tests/macros/tmacros_issues.nim
+++ b/tests/macros/tmacros_issues.nim
@@ -4,7 +4,7 @@ IntLit 5
 proc (x: int): string => typeDesc[proc[string, int]]
 proc (x: int): void => typeDesc[proc[void, int]]
 proc (x: int) => typeDesc[proc[void, int]]
-x => UncheckedArray[int]
+x => seq[int]
 a
 s
 d
@@ -111,7 +111,7 @@ block t2211:
   showType(proc(x:int): void)
   showType(proc(x:int))
 
-  var x: UncheckedArray[int]
+  var x: seq[int]
   showType(x)