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

Compilation error when using DateTime.t() #75

Open
florius0 opened this issue Jun 18, 2022 · 0 comments
Open

Compilation error when using DateTime.t() #75

florius0 opened this issue Jun 18, 2022 · 0 comments

Comments

@florius0
Copy link

This code fails to compile with the following error: (UndefinedFunctionError) function DateTime.new/0 is undefined or private.

defmodule A do
  import TypeClass

  defdata do
    time :: DateTime.t()
  end
end
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 a pull request may close this issue.

1 participant