From f2a6a86bb22c5c51d1113117e823a54812e20450 Mon Sep 17 00:00:00 2001 From: mihaylov Date: Tue, 14 Jun 2005 14:31:24 +0000 Subject: Fixed an assertion error if an attribute applic... Fixed an assertion error if an attribute application doesn't typecheck --- sources/scalac/Global.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sources/scalac') diff --git a/sources/scalac/Global.java b/sources/scalac/Global.java index d3e434b4a7..31c5c173af 100644 --- a/sources/scalac/Global.java +++ b/sources/scalac/Global.java @@ -424,6 +424,8 @@ public abstract class Global { * @param args - arguments to the attribute constructor */ public void addAttribute(Symbol sym, Symbol aSym, AConstant[] args) { + if(aSym.isNone() || aSym.isError()) + return; AttributeInfo attr = getAttributes(sym); attr = new AttributeInfo(aSym, args, attr); setAttribute(sym, attr); -- cgit v1.2.3