summary refs log blame commit diff stats
path: root/tests/array/t9932.nim
blob: 1e09c487b9e394b6bc7570548e00672171bf2560 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11










                                                                                                 
discard """
cmd: "nim check $file"
errormsg: "invalid type: 'type int' in this context: 'array[0..0, type int]' for var"
nimout: '''
t9932.nim(10, 5) Error: invalid type: 'type' in this context: 'array[0..0, type]' for var
t9932.nim(11, 5) Error: invalid type: 'type int' in this context: 'array[0..0, type int]' for var
'''
"""

var y: array[1,type]
var x = [int]