summary refs log tree commit diff stats
path: root/tests/array/t20248.nim
blob: 66142548b95b8bb3684771976acf16f246ea05be (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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]