better error messages: use <T1, T2> instead of (T1, T2) in order to prevent confusions with tuple types

This commit is contained in:
Araq
2018-02-10 20:39:05 +01:00
parent 51d81c4e23
commit ef6eda4cb4
25 changed files with 62 additions and 62 deletions

View File

@@ -1,5 +1,5 @@
discard """
errormsg: "type mismatch: got (array[0..2, float], array[0..1, float])"
errormsg: "type mismatch: got <array[0..2, float], array[0..1, float]>"
"""
proc `+`*[R, T] (v1, v2: array[R, T]): array[R, T] =