mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-04 04:02:41 +00:00
* fix #12938 nim compiler assertion fail when literal integer is passed as template argument for array size * use new flag tfImplicitStatic * fix * fix #14193 * correct tfUnresolved add condition * clean test
10 lines
229 B
Nim
10 lines
229 B
Nim
type
|
|
ExampleArray[Size, T] = array[Size, T]
|
|
|
|
var integerArray: ExampleArray[32, int] # Compiler crash!
|
|
doAssert integerArray.len == 32
|
|
|
|
const Size = 2
|
|
var integerArray2: ExampleArray[Size, int]
|
|
doAssert integerArray2.len == 2
|