diff options
Diffstat (limited to 'tests/errmsgs/tstaticresult.nim')
-rw-r--r-- | tests/errmsgs/tstaticresult.nim | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/errmsgs/tstaticresult.nim b/tests/errmsgs/tstaticresult.nim new file mode 100644 index 000000000..bc534c7a8 --- /dev/null +++ b/tests/errmsgs/tstaticresult.nim @@ -0,0 +1,10 @@ +discard """ +errormsg: ''' +invalid type: 'static[int]' in this context: 'proc (x: int): static[int]' for proc +''' +""" + +proc foo(x: int): static int = + x + 123 + +echo foo(123) |