We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4c1e3d commit 0cdf6d2Copy full SHA for 0cdf6d2
lib/elixir/lib/kernel.ex
@@ -3028,9 +3028,15 @@ defmodule Kernel do
3028
3029
"""
3030
defmacro first..last do
3031
- first = Macro.expand(first, __CALLER__)
3032
- last = Macro.expand(last, __CALLER__)
3033
- range(__CALLER__.context, first, last)
+ case bootstrapped?(Macro) do
+ true ->
+ first = Macro.expand(first, __CALLER__)
3034
+ last = Macro.expand(last, __CALLER__)
3035
+ range(__CALLER__.context, first, last)
3036
+
3037
+ false ->
3038
3039
+ end
3040
end
3041
3042
defp range(_context, first, last) when is_integer(first) and is_integer(last) do
0 commit comments