Skip to content

Instantly share code, notes, and snippets.

@bcardarella
Created February 22, 2017 00:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bcardarella/ab74549f996e4b8131859a6f1ac64fb1 to your computer and use it in GitHub Desktop.
Save bcardarella/ab74549f996e4b8131859a6f1ac64fb1 to your computer and use it in GitHub Desktop.
defmodule Bar do
use Foo
end
defmodule Baz do
use Bar
end
defmodule Foo do
defmacro __using__([]) do
quote do
defmacro __using__([]) do
quote do
def hello do
IO.puts "World!"
end
end
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment