mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 17:04:41 +00:00
15 lines
353 B
Nim
15 lines
353 B
Nim
discard """
|
|
cmd: "nim check --hints:off $file"
|
|
errormsg: "ordinal type expected; given: Error Type"
|
|
nimout: '''
|
|
t20248.nim(10, 36) Error: ordinal type expected; given: Error Type
|
|
t20248.nim(14, 20) Error: ordinal type expected; given: Error Type
|
|
'''
|
|
"""
|
|
|
|
type Vec[N: static[int]] = array[0 ..< N, float]
|
|
|
|
var v: Vec[32]
|
|
|
|
var stuff: array[0 ..< 16, int]
|