semTemplateDef and t17433 clean-ups (#17448)
- use `doAssert` in t17433 - use setGenericParamsMisc in semTemplateDef akin to semProcAux - pragma handling in semTemplateDef inline with semProcAux
This commit is contained in:
parent
c8dda867f2
commit
e5873b3a93
4 changed files with 43 additions and 41 deletions
|
|
@ -7,10 +7,10 @@
|
|||
from std/macros import expandMacros
|
||||
|
||||
proc bar(a: typedesc): a = default(a)
|
||||
assert bar(float) == 0.0
|
||||
assert bar(string) == ""
|
||||
doAssert bar(float) == 0.0
|
||||
doAssert bar(string) == ""
|
||||
|
||||
template main =
|
||||
proc baz(a: typedesc): a = default(a)
|
||||
assert baz(float) == 0.0
|
||||
doAssert baz(float) == 0.0
|
||||
main()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue