Unchecked arrays now have their own type (#9267)

This commit is contained in:
LemonBoy 2018-10-10 21:03:18 +02:00 • committed by Andreas Rumpf
commit 0ead36dae6
15 changed files with 72 additions and 21 deletions

View file

@ -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)