Skip to content
Browse files

sys_pre_expand: Fix BASE never being set

Commit a612e99 turned module attributes from
2-tuples to 3-tuples but forgot to update get_base/1, breaking BASE for
parametric modules.
  • Loading branch information...
1 parent 24ad2d1 commit 18943e753f7791312d89943851169e89acece8fc @liskin liskin committed Aug 2, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/compiler/src/sys_pre_expand.erl
View
2 lib/compiler/src/sys_pre_expand.erl
@@ -119,7 +119,7 @@ expand_pmod(Fs0, St0) ->
get_base(As) ->
case lists:keyfind(extends, 1, As) of
- {extends,[Base]} when is_atom(Base) ->
+ {extends,_,[Base]} when is_atom(Base) ->
Base;
_ ->
[]

0 comments on commit 18943e7

Please sign in to comment.
Something went wrong with that request. Please try again.