]
Says compiler expects int literal(1) but got an OpNode instead.
var op_tbl_1 : array[0..0, tuple[weigth:int, op: Op]] = [
(1, Op(name:"divisors", op_type:intToSetOp, zz_to_set_op: divisors)) # Int to set ops
]
seems to workIn your first example you didn't use tuple literals '()':
var op_tbl_1 : array[0..0, tuple[weight: int, op_node: OpNode]] = [
(1, OpNode(name:"divisors", op_type:intToSetOp, zz_to_set_op: divisors)) # Int to set ops
]
Maybe you think the second example worked because renaming OpNode to Op, that's why im telling you this.