-
- Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Description
# a.nim import b, c var f: Foo let nb = newBar(f.field)# b.nim type Bar* = tuple[x: int] template newBar*(b: int): Bar = (x: b).Bar# c.nim type Foo* = object mField: int template field*(f: Foo): int = f.mFieldError:
$ nim c a.nim a.nim(4, 16) template/generic instantiation from here c.nim(4, 33) Error: undeclared field: 'mField' Metadata
Metadata
Assignees
Type
Projects
Status
Done