fix #15836 proc arg return type auto unexpectly match proc with concr… (#21065)

* fix #15836 proc arg return type auto unexpectly match proc with concrete type

* fix #16244

* add test case for #12869
This commit is contained in:
Bung
2022-12-12 13:26:18 +08:00
committed by GitHub
parent 3812d91390
commit 5917c2d5b7
12 changed files with 74 additions and 12 deletions

View File

@@ -1,5 +1,5 @@
discard """
cmd: "nim check $file"
cmd: "nim check --hints:off $file"
errormsg: ""
nimout: '''
tillegalreturntype.nim(11, 11) Error: return type 'typed' is only valid for macros and templates