with code similar to the following, the require Logger expression was added in inside the typedstruct block
defmodule Bar do
use TypedStruct
require AnotherModule
typedstruct module: Some.Thing do
@moduledoc false
field :name, String.t(), enforce: true
end
def foo do
Logger.warning("something")
end
end
Problem
with code similar to the following, the
require Logger
expression was added in inside thetypedstruct
block