Skip to content

Commit 6d36241

Browse files
author
José Valim
committed
Release v0.12.0
1 parent f1e647f commit 6d36241

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# v0.11.3-dev
1+
# v0.12.0 (2013-12-15)
22

33
* Enhancements
44
* [Exception] Allow `exception/1` to be overriden and promote it as the main mechanism to customize exceptions

VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.11.3-dev
1+
0.12.0

lib/elixir/lib/kernel/typespec.ex

+3-3
Original file line numberDiff line numberDiff line change
@@ -484,15 +484,15 @@ defmodule Kernel.Typespec do
484484

485485
## To AST conversion
486486

487-
defp collect_vars({ :ann_type, _line, args }) do
487+
defp collect_vars({ :ann_type, _line, args }) when is_list(args) do
488488
Enum.flat_map(args, &collect_vars/1)
489489
end
490490

491-
defp collect_vars({ :type, _line, _kind, args }) do
491+
defp collect_vars({ :type, _line, _kind, args }) when is_list(args) do
492492
Enum.flat_map(args, &collect_vars/1)
493493
end
494494

495-
defp collect_vars({ :remote_type, _line, args }) do
495+
defp collect_vars({ :remote_type, _line, args }) when is_list(args) do
496496
Enum.flat_map(args, &collect_vars/1)
497497
end
498498

lib/elixir/test/elixir/typespec_test.exs

+1-1
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ defmodule Typespec.TypeTest do
454454
test "spec_to_ast" do
455455
specs = [
456456
(quote do: @spec a() :: integer()),
457-
(quote do: @spec a(atom()) :: integer()),
457+
(quote do: @spec a(atom()) :: integer() | [{}]),
458458
(quote do: @spec a(b) :: integer() when [b: integer()]),
459459
(quote do: @spec a(b) :: b when [b: var])
460460
]

src/elixir.app.src

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{application, elixir,
22
[{description, "elixir"},
3-
{vsn, "0.11.3-dev"},
3+
{vsn, "0.12.0"},
44
{modules, [
55
elixir
66
]},

0 commit comments

Comments
 (0)