File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -1717,13 +1717,12 @@ defmodule Kernel do
1717
1717
use DefaultMod
1718
1718
1719
1719
def test(x, y) do
1720
- x * y + super
1720
+ x * y + super(x, y)
1721
1721
end
1722
1722
end
1723
1723
1724
1724
As seen as in the example `super` can be used to call the default
1725
- implementation, if no arguments are given to `super` it will be implictly
1726
- given the arguments of the current function.
1725
+ implementation.
1727
1726
"""
1728
1727
defmacro defoverridable(tuples) do
1729
1728
quote do
Original file line number Diff line number Diff line change @@ -812,10 +812,8 @@ defmodule Kernel.SpecialForms do
812
812
defmacro __aliases__ ( args )
813
813
814
814
@ doc """
815
- Calls the overriden function when overriding it with `defoverridable`. If no
816
- arguments are given to `super` the overriden function will be called with the
817
- same arguments as the current one. See `Kernel.defoverridable` for more
818
- information and documentation.
815
+ Calls the overriden function when overriding it with `defoverridable`.
816
+ See `Kernel.defoverridable` for more information and documentation.
819
817
"""
820
818
defmacro super ( args )
821
819
end
You can’t perform that action at this time.
0 commit comments