Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GP bug when only using subclasses of return type #206

Open
AnnanFay opened this issue May 28, 2017 · 0 comments
Open

GP bug when only using subclasses of return type #206

AnnanFay opened this issue May 28, 2017 · 0 comments

Comments

@AnnanFay
Copy link

AnnanFay commented May 28, 2017

If you set return type to a class and only have nodes which return subclasses then you will run into an issue when generating trees because ret_type is never added to the type dicts.

Potential fix, after line 263:

    self.primitives[ret_type]
    self.terminals[ret_type]

This initialises the entries to empty lists and the type will then appear when iterating over keys in _add.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant