This commit is contained in:
Araq 2013-07-02 19:32:12 +02:00
commit c1155cd2a5
2 changed files with 22 additions and 10 deletions

View file

@ -0,0 +1,10 @@
discard """
output: "Error: constant expression expected"
line: 7
"""
var x: array[100, char]
template Foo : expr = x[42]
const myConst = foo