Skip to content

Commit

Permalink
add testcase (nim-lang#16156)
Browse files Browse the repository at this point in the history
  • Loading branch information
ringabout authored and ardek66 committed Mar 26, 2021
1 parent b888f70 commit db1252a
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 db1252a

Please sign in to comment.