From d2767983aa4aeb9caccfd56273a1ac93e576bb4a Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Thu, 14 Mar 2013 09:53:30 +0100 Subject: Various fixes that make loadDef largely work. Only problem is that there are stubs for AnyRef generated. --- src/dotty/tools/dotc/core/Denotations.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/dotty/tools/dotc/core/Denotations.scala') diff --git a/src/dotty/tools/dotc/core/Denotations.scala b/src/dotty/tools/dotc/core/Denotations.scala index 170233ee2..c3486aa0a 100644 --- a/src/dotty/tools/dotc/core/Denotations.scala +++ b/src/dotty/tools/dotc/core/Denotations.scala @@ -530,7 +530,7 @@ object Denotations { /** The union of two groups. */ def union(that: PreDenotation) = if (!this.exists) that - else if (that.exists) this + else if (!that.exists) this else DenotUnion(this, that) } -- cgit v1.2.3