Skip to content
This repository was archived by the owner on Dec 18, 2025. It is now read-only.

Made kind of BENode public#1

Open
cmd410 wants to merge 2 commits intoFedericoCeratto:masterfrom
cmd410:master
Open

Made kind of BENode public#1
cmd410 wants to merge 2 commits intoFedericoCeratto:masterfrom
cmd410:master

Conversation

@cmd410
Copy link
Copy Markdown

@cmd410 cmd410 commented Feb 5, 2022

Now users can differentiate nodes by kind.
Without this I keep getting an error:

Error: type mismatch: got <BENode>
but expected one of:
proc kind(n: NimNode): NimNodeKind
  first type mismatch at position: 1
  required type for n: NimNode
  but expression 'result' is of type: BENode

kind being private doesn't allow to differentiate nodes by kind outside of the library, so one gets an error:
```Error: type mismatch: got <BENode>
but expected one of:
proc kind(n: NimNode): NimNodeKind
  first type mismatch at position: 1
  required type for n: NimNode```
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant