Skip to content

Commit

Permalink
Merge pull request #75 from Qqwy/protocols_bug
Browse files Browse the repository at this point in the history
Ensures calls to `def`/`defp`/`defmacro`/`defmacrop` are always qualified
  • Loading branch information
Qqwy committed Oct 30, 2021
2 parents af4deb0 + 1e891fc commit feebe3f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions README.md
Expand Up @@ -204,6 +204,9 @@ Details:
- [ ] Per-module or even per-spec settings to turn on/off, configure formatter, etc.

### Changelog
- 0.10.3 -
- Fixes:
- Fixes issue when TypeCheck specs were used inside a defprotocol module or other modules where the normal `def`/`defp` macros are hidden/overridden.
- 0.10.2 -
- Fixes:
- Fixes issue where FixedMaps would accept maps any maps (even those missing the required keys) sometimes. (c.f. #74)
Expand Down
2 changes: 1 addition & 1 deletion lib/type_check/spec.ex
Expand Up @@ -148,7 +148,7 @@ defmodule TypeCheck.Spec do

defoverridable([{unquote(name), unquote(arity)}])

unquote(function_kind)(unquote(name)(unquote_splicing(clean_params)), do: unquote(body))
Kernel.unquote(function_kind)(unquote(name)(unquote_splicing(clean_params)), do: unquote(body))
end
end

Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Expand Up @@ -6,7 +6,7 @@ defmodule TypeCheck.MixProject do
def project do
[
app: :type_check,
version: "0.10.2",
version: "0.10.3",
elixir: "~> 1.9",
start_permanent: Mix.env() == :prod,
deps: deps(),
Expand Down

0 comments on commit feebe3f

Please sign in to comment.