diff options
Diffstat (limited to 'sources')
-rw-r--r-- | sources/scalac/typechecker/Analyzer.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sources/scalac/typechecker/Analyzer.java b/sources/scalac/typechecker/Analyzer.java index 49c00ae457..7f830152cc 100644 --- a/sources/scalac/typechecker/Analyzer.java +++ b/sources/scalac/typechecker/Analyzer.java @@ -984,7 +984,7 @@ public class Analyzer extends Transformer implements Modifiers, Kinds { } catch (Type.Error ex) { reportTypeError(tree.pos, ex); tree.type = Type.ErrorType; - if (tree.hasSymbol()) tree.setSymbol(Symbol.ERROR); + if (tree.hasSymbol() && tree.symbol() == null) tree.setSymbol(Symbol.ERROR); } this.unit = savedUnit; @@ -2215,7 +2215,7 @@ public class Analyzer extends Transformer implements Modifiers, Kinds { } catch (Type.Error ex) { reportTypeError(tree.pos, ex); tree.type = Type.ErrorType; - if (tree.hasSymbol()) tree.setSymbol(Symbol.ERROR); + if (tree.hasSymbol() && tree.symbol() == null) tree.setSymbol(Symbol.ERROR); return tree; } } |