-
- Notifications
You must be signed in to change notification settings - Fork 1.5k
Open
Labels
Description
import typetraits type Myobj=object x1:int var x:Myobj # the two symbols with the identifier ``name`` will clash. for name, value in x.fieldPairs: # BUG: ???(???, 0) Error: in expression 'type(x.x1)."x1"': identifier expected, but found '"x1"' echo value.type.name- should not be an error
- error should at least not contain
???
workaround
import typetraits type Myobj=object x1:int var x:Myobj for fieldname, value in x.fieldPairs: echo value.type.name