Skip to content

Commit 1b41faf

Browse files
committed
Fixed Compiler error when is used as variable name
1 parent 3f8e363 commit 1b41faf

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lib/elixir_script/passes/find_used_modules.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ defmodule ElixirScript.FindUsedModules do
210210
end)
211211
end
212212

213-
defp walk({:receive, _context, blocks}, state) do
213+
defp walk({:receive, _context, blocks}, state) when is_list(blocks) do
214214
do_block = Keyword.get(blocks, :do)
215215
after_block = Keyword.get(blocks, :after, nil)
216216

mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ defmodule ElixirScript.Mixfile do
44
def project do
55
[
66
app: :elixir_script,
7-
version: "0.31.0",
7+
version: "0.31.1",
88
elixir: "~> 1.5",
99
elixirc_paths: elixirc_paths(Mix.env),
1010
deps: deps(),

0 commit comments

Comments
 (0)