@@ -480,8 +480,10 @@ generateCase tcc expr branches =
480 case expr of
480 case expr of
481 A.A _ (Var (Var.Canonical Var.Local x)) ->
481 A.A _ (Var (Var.Canonical Var.Local x)) ->
482 return (Case.matchSubst [(tempVar, Var.safe x)] initialMatch, [])
482 return (Case.matchSubst [(tempVar, Var.safe x)] initialMatch, [])
483 A.A _ (Var (Var.Canonical (Var.TopLevel _) x)) ->
484 A.A _ (Var (Var.Canonical (Var.TopLevel _) x)) ->
484 return (Case.matchSubst [(tempVar, Var.safe x)] initialMatch, [])
485 return (Case.matchSubst [(tempVar, Var.safe x)] initialMatch, [])
486 do expr' <- toJsExpr expr
488 do expr' <- toJsExpr expr
487 return (initialMatch, [VarDeclStmt () [varDecl tempVar expr']])
489 return (initialMatch, [VarDeclStmt () [varDecl tempVar expr']])