mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-18 21:40:32 +00:00
(cherry picked from commit aa6f9d490f)
This commit is contained in:
9
tests/generics/t6637.nim
Normal file
9
tests/generics/t6637.nim
Normal file
@@ -0,0 +1,9 @@
|
||||
|
||||
type
|
||||
Grid2D*[I: SomeInteger, w, h: static[I], T] = object
|
||||
grid: array[w, array[h, T]]
|
||||
Grid2DIns = Grid2D[int, 2, 3, uint8]
|
||||
|
||||
let a = Grid2DIns()
|
||||
doAssert a.grid.len == 2
|
||||
doAssert a.grid[0].len == 3
|
||||
Reference in New Issue
Block a user