File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ defmodule Record do
3030
3131 defmodule unquote ( name ) do
3232 @ moduledoc false
33- import Record.DSL
33+ import Elixir. Record.DSL
3434
3535 @ record_fields [ ]
3636 @ record_types [ ]
@@ -39,9 +39,9 @@ defmodule Record do
3939 # avoid conflicts in nested records
4040 values = unquoted_values
4141
42- Record . deffunctions ( values , __ENV__ )
42+ Elixir. Record. deffunctions ( values , __ENV__ )
4343 value = unquote ( block )
44- Record . deftypes ( values , @ record_types , __ENV__ )
44+ Elixir. Record. deftypes ( values , @ record_types , __ENV__ )
4545 value
4646 end
4747 end
Original file line number Diff line number Diff line change @@ -69,6 +69,10 @@ defmodule RecordTest.Macros do
6969 defrecord NestedInNested , it_compiles: true
7070 end
7171
72+ # Ensure there is no conflict in a nested module
73+ # named record.
74+ defrecord Record , [ a: 1 , b: 2 ]
75+
7276 def new ( ) do
7377 _user ( )
7478 end
You can’t perform that action at this time.
0 commit comments