expr => untyped; stmt => typed (#14804)
* expr => untyped; stmt => typed * changelog + comment
This commit is contained in:
parent
32f335f594
commit
0c56eeda0e
3 changed files with 9 additions and 2 deletions
|
|
@ -49,6 +49,12 @@ block: # typeToString
|
|||
doAssert (tuple[a: C2b[MyInt, C4[cstring]], b: cint, c: float]).name3 ==
|
||||
"tuple[a: C[MyInt{int}, C4[cstring]], b: cint{int32}, c: float]"
|
||||
|
||||
macro fn(): string =
|
||||
# not 100% sure whether this should even compile; if some PR breaks this test,
|
||||
# this could be revisited, maybe.
|
||||
newLit $($getType(untyped), $getType(typed))
|
||||
doAssert fn() == """("untyped", "typed")"""
|
||||
|
||||
block distinctBase:
|
||||
block:
|
||||
type
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue