From 00bd0b0b039c6c8105bf64b5c09cef66bc2a7b89 Mon Sep 17 00:00:00 2001 From: paltherr Date: Wed, 21 Jan 2004 10:24:10 +0000 Subject: - Added missing cloning of type of new labels --- sources/scalac/transformer/TailCall.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sources/scalac/transformer/TailCall.java') diff --git a/sources/scalac/transformer/TailCall.java b/sources/scalac/transformer/TailCall.java index dca3874d23..48c5a233e8 100644 --- a/sources/scalac/transformer/TailCall.java +++ b/sources/scalac/transformer/TailCall.java @@ -110,7 +110,7 @@ public class TailCall extends Transformer { /* Create a new symbol for the LabelDef */ Symbol newLabel = new TermSymbol(tree.pos, name, tree.symbol(), Modifiers.LABEL); - newLabel.setInfo(tree.symbol().type()); + newLabel.setInfo(tree.symbol().type().cloneType(tree.symbol(), newLabel)); /* Push information about the label on the state stack. */ push_label(newLabel); -- cgit v1.2.3