Skip to content

Commit

Permalink
add testcase (#16156)
Browse files Browse the repository at this point in the history
(cherry picked from commit 3510216)
  • Loading branch information
ringabout authored and narimiran committed Nov 27, 2020
1 parent 150fc44 commit 2043698
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/statictypes/tstatictypes.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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]

0 comments on commit 2043698

Please sign in to comment.