Skip to content

Types are not exported properly in v0.8 #28

@sgmihai

Description

@sgmihai

As previously discussed:
With binlang 0.8, after removing the * from parsers and fields, I get a undeclared identifier when using a parser in another module, with import. include works.

This is the code that generated this type declaration
Should be updated to check the 'visibility' parser option and add export marker (*) accordingly

result.add(
  nnkTypeSection.newTree(
    nnkTypeDef.newTree(
      tdef,
      newEmptyNode(),
      if parserOptions.reference: nnkRefTy.newTree(typeBody)
      else: typeBody)))

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions