Skip to content

Commit b932a52

Browse files
author
José Valim
committed
Avoid race conditions on behaviour checks, closes #8568
1 parent 8d26993 commit b932a52

File tree

5 files changed

+130
-126
lines changed

5 files changed

+130
-126
lines changed

lib/elixir/lib/kernel.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2803,7 +2803,7 @@ defmodule Kernel do
28032803
"invalid write attribute syntax, you probably meant to use: @#{name} expression"
28042804

28052805
# Typespecs attributes are currently special cased by the compiler
2806-
is_list(args) and args != [] and tl(args) == [] and typespec?(name) ->
2806+
is_list(args) and typespec?(name) ->
28072807
case bootstrapped?(Kernel.Typespec) do
28082808
false ->
28092809
:ok

0 commit comments

Comments
 (0)