Skip to content

Seemingly Innocuous Template does not Compile #993

@fowlmouth

Description

@fowlmouth
type pnode* = ref object of tobject

template litNode (name, ty): stmt  =
  type name* = ref object of PNode
    val*: ty
litNode PIntNode, int
/tmp/aporia/a53.nim(7, 0) Info: instantiation from here
/tmp/aporia/a53.nim(6, 7) Error: illformed AST: val(*|*|*|*|*|*|*|*)

This was working fine a few commits ago, it should have immediate but it was working fine without it. (Adding immediate does not fix it.)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions