Created
October 20, 2016 19:31
-
-
Save arjan/227e12154b1e3ae2b0725cd33d2d23e7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule TTest do | |
use ExUnit.Case | |
defmodule Macro do | |
defmacro @({name, _, args}) do | |
IO.puts("defining #{name} #{inspect args}") | |
end | |
end | |
defmodule Foo do | |
import Kernel, except: [@: 1] | |
import Macro | |
@sdf("bla", 3) | |
def bar do | |
IO.puts("hoi") | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment