Tuple error message (#11141); fixes #3211

This commit is contained in:
Arne Döring 2019-05-15 17:59:06 +02:00 • committed by Andreas Rumpf
commit 2339542832
4 changed files with 36 additions and 22 deletions

View file

@ -0,0 +1,5 @@
discard """
errormsg: "typedesc not allowed as tuple field."
"""
var bar = (a: int, b: 1)

View file

@ -0,0 +1,5 @@
discard """
errormsg: "Mixing types and values in tuples is not allowed."
"""
var bar = (int, 1)