better error messages: use <T1, T2> instead of (T1, T2) in order to prevent confusions with tuple types
This commit is contained in:
parent
51d81c4e23
commit
ef6eda4cb4
25 changed files with 62 additions and 62 deletions
|
|
@ -1,5 +1,5 @@
|
|||
discard """
|
||||
errormsg: "type mismatch: got (string)"
|
||||
errormsg: "type mismatch: got <string>"
|
||||
line: 21
|
||||
nimout: "twrapconcept.nim(11, 5) Foo: concept predicate failed"
|
||||
"""
|
||||
|
|
@ -9,7 +9,7 @@ discard """
|
|||
type
|
||||
Foo = concept foo
|
||||
foo.get is int
|
||||
|
||||
|
||||
FooWrap[F: Foo] = object
|
||||
foo: F
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue