mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-19 05:50:30 +00:00
committed by
Andreas Rumpf
parent
d1f983b37c
commit
70cf286a22
9
tests/errmsgs/t6281.nim
Normal file
9
tests/errmsgs/t6281.nim
Normal file
@@ -0,0 +1,9 @@
|
||||
discard """
|
||||
errormsg: "invalid type: 'SomeNumber' in this context: 'seq[SomeNumber]' for var"
|
||||
line: 6
|
||||
"""
|
||||
|
||||
var seqwat: seq[SomeNumber] = @[]
|
||||
|
||||
proc foo(x: SomeNumber) =
|
||||
seqwat.add(x)
|
||||
Reference in New Issue
Block a user