Skip to content

Compilation error when using DateTime.t() #75

@florius0

Description

@florius0

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions