summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorLemonBoy <LemonBoy@users.noreply.github.com>2018-10-10 21:03:18 +0200
committerAndreas Rumpf <rumpf_a@web.de>2018-10-10 21:03:18 +0200
commit0ead36dae6ab0d4525d2318d19335147ffa0bd3d (patch)
treef5aae1163acc3da37ac0341c6e2fd8bc013de259 /tests
parent0803b532f44fc7b0039e31187af76e36828ca89d (diff)
downloadNim-0ead36dae6ab0d4525d2318d19335147ffa0bd3d.tar.gz
Unchecked arrays now have their own type (#9267)
Diffstat (limited to 'tests')
-rw-r--r--tests/macros/typesapi.nim4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/macros/typesapi.nim b/tests/macros/typesapi.nim
index cdbfc0ad2..04b8f0ae5 100644
--- a/tests/macros/typesapi.nim
+++ b/tests/macros/typesapi.nim
@@ -2,6 +2,7 @@ discard """
   nimout: '''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]
 """
 
 #2211
@@ -15,3 +16,6 @@ macro showType(t:typed): untyped =
 showType(proc(x:int): string)
 showType(proc(x:int): void)
 showType(proc(x:int))
+
+var x: UncheckedArray[int]
+showType(x)