From c8107b0d95890b29ffebe101fc54ce0885511de4 Mon Sep 17 00:00:00 2001 From: Iulian Dragos Date: Wed, 3 Dec 2008 16:52:00 +0000 Subject: Fixed #1358. --- src/compiler/scala/tools/nsc/ast/TreeBrowsers.scala | 2 +- src/compiler/scala/tools/nsc/transform/UnCurry.scala | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/compiler') diff --git a/src/compiler/scala/tools/nsc/ast/TreeBrowsers.scala b/src/compiler/scala/tools/nsc/ast/TreeBrowsers.scala index 94c19baa34..10feac1b4a 100644 --- a/src/compiler/scala/tools/nsc/ast/TreeBrowsers.scala +++ b/src/compiler/scala/tools/nsc/ast/TreeBrowsers.scala @@ -138,7 +138,7 @@ abstract class TreeBrowsers { var splitPane: JSplitPane = _ var treeModel: TreeModel = _ - val textArea: JTextArea = new JTextArea(20, 50) + val textArea: JTextArea = new JTextArea(20, 150) val infoPanel = new TextInfoPanel() /** Create a frame that displays the AST. diff --git a/src/compiler/scala/tools/nsc/transform/UnCurry.scala b/src/compiler/scala/tools/nsc/transform/UnCurry.scala index bb552de8b9..2548375e93 100644 --- a/src/compiler/scala/tools/nsc/transform/UnCurry.scala +++ b/src/compiler/scala/tools/nsc/transform/UnCurry.scala @@ -628,7 +628,7 @@ abstract class UnCurry extends InfoTransform with TypingTransformers { applyUnary(tree) case TypeApply(_, _) => applyUnary(tree) - case Return(expr) if (tree.symbol != currentOwner.enclMethod) => + case Return(expr) if (tree.symbol != currentOwner.enclMethod || currentOwner.hasFlag(LAZY)) => if (settings.debug.value) log("non local return in "+tree.symbol+" from "+currentOwner.enclMethod) atPos(tree.pos)(nonLocalReturnThrow(expr, tree.symbol)) case TypeTree() => -- cgit v1.2.3