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

Fix compilation error when setting DateTime.t() as a field type #76

Closed
wants to merge 0 commits into from

Conversation

florius0
Copy link

This PR fixes #75

After a brief investigation it appears that Algae treats any Module.t() (except for string) as an Algae type, which all define new/0.

So my proposal is to check if module defines new/0 and if it does not, use nil instead

@florius0 florius0 changed the title Fix witchcrafters/algae#75 Fix compilation error when setting DateTime.t() as a field type Jun 18, 2022
@florius0 florius0 closed this Jun 22, 2022
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

Successfully merging this pull request may close these issues.

Compilation error when using DateTime.t()
1 participant