From 0ead36dae6ab0d4525d2318d19335147ffa0bd3d Mon Sep 17 00:00:00 2001 From: LemonBoy Date: Wed, 10 Oct 2018 21:03:18 +0200 Subject: Unchecked arrays now have their own type (#9267) --- tests/macros/typesapi.nim | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests') 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) -- cgit 1.4.1-2-gfad0