Unchecked arrays now have their own type (#9267)
This commit is contained in:
parent
0803b532f4
commit
0ead36dae6
15 changed files with 72 additions and 21 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue