algae icon indicating copy to clipboard operation
algae copied to clipboard

Compilation error when using `DateTime.t()`

Open florius0 opened this issue 2 years ago • 0 comments

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

florius0 avatar Jun 18 '22 23:06 florius0