expr => untyped; stmt => typed (#14804)

* expr => untyped; stmt => typed

* changelog + comment
This commit is contained in:
Timothee Cour 2020-06-25 01:22:08 -07:00 • committed by GitHub
commit 0c56eeda0e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 2 deletions

View file

@ -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