Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix class A::B {}; class A {}
  • Loading branch information
sorear committed Oct 27, 2011
1 parent 67f9b80 commit 853ca5d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/Kernel.cs
Expand Up @@ -764,13 +764,14 @@ public sealed class RuntimeUnit : IFreeze {
}

// no conflict if items are simple packages with the same who
if (!ose.v.rw && !oseod && oseo.mo.mo.isPackage &&
!nse.v.rw && !nseod && nseo.mo.mo.isPackage &&
if (!ose.v.rw && !oseod && !nse.v.rw && !nseod &&
(oseo.mo.mo.isPackage || nseo.mo.mo.isPackage) &&
oseo.mo.who.Isa(Kernel.StashMO) &&
nseo.mo.who.Isa(Kernel.StashMO) &&
Kernel.UnboxAny<string>(oseo.mo.who) ==
Kernel.UnboxAny<string>(nseo.mo.who)) {
nse = ose;
if (nseo.mo.mo.isPackage)
nse = ose;
return null;
}

Expand Down

0 comments on commit 853ca5d

Please sign in to comment.