add testcase (#16156)
This commit is contained in:
parent
6b77e16c6f
commit
3510216c8a
1 changed files with 9 additions and 0 deletions
|
|
@ -357,3 +357,12 @@ proc fn(N1: static int, N2: static int, T: typedesc): array[N1 * N2, T] =
|
|||
doAssert(len(result) == N1 * N2)
|
||||
|
||||
let yy = fn(5, 10, float)
|
||||
|
||||
|
||||
block:
|
||||
block:
|
||||
type Foo[N: static int] = array[cint(0) .. cint(N), float]
|
||||
type T = Foo[3]
|
||||
block:
|
||||
type Foo[N: static int] = array[int32(0) .. int32(N), float]
|
||||
type T = Foo[3]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue