Skip to content

Commit

Permalink
[fix] compiler, typer: Value restriction should check all variables
Browse files Browse the repository at this point in the history
  • Loading branch information
BourgerieQuentin committed Oct 19, 2012
1 parent 042c8f8 commit 68e247e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compiler/libqmlcompil/qmlMakeTyper.ml
Original file line number Diff line number Diff line change
Expand Up @@ -447,9 +447,9 @@ struct
in
if is_expansive exp then (
let mutable_freevars_ty = mutable_vars ty in
if not (QT.FreeVars.is_type_empty mutable_freevars_ty) then
if not (QT.FreeVars.is_empty mutable_freevars_ty) then
let (freevars_expansive,labels) = expansive_nodes_interacts mutable_freevars_ty exp in
if not (QT.FreeVars.is_type_empty freevars_expansive) then
if not (QT.FreeVars.is_empty freevars_expansive) then
let context = QmlError.Context.annoted_expr annotmap exp in
let context = QmlError.Context.merge context (List.map QmlError.Context.label labels) in
QmlError.serror context
Expand Down

0 comments on commit 68e247e

Please sign in to comment.