mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-12 14:23:45 +00:00
10 lines
247 B
Nim
10 lines
247 B
Nim
type A[I: SomeOrdinal, E] = tuple # same for object
|
|
length: int
|
|
|
|
doAssert A.sizeof == sizeof(int) # works without the following proc
|
|
|
|
proc newA*[I: SomeOrdinal, E](): A[I, E] = # works without `SomeOrdinal`
|
|
discard
|
|
|
|
discard newA[uint8, int]()
|