Skip to content

Commit

Permalink
Fix inheritance of an outer class by an inner class
Browse files Browse the repository at this point in the history
  • Loading branch information
sorear committed Oct 29, 2011
1 parent 000cc77 commit 616e8ac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/CodeGen.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4074,7 +4074,6 @@ object Call(object[] args) {
string err = st.mo.Compose();
if (err != null)
return new Exception(err);
st.Invalidate();
return null;
} else if (cmd == "type_kind") {
STable st = (STable)Handle.Unbox(args[1]);
Expand Down
4 changes: 4 additions & 0 deletions lib/ObjModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -591,6 +591,8 @@ public string Compose() {
if (rtype == "role" || rtype == "prole") {
isRole = true;
SetMRO(Kernel.AnyMO.mo.mro);
Revalidate();
stable.SetupVTables();
return null;
}

Expand Down Expand Up @@ -622,6 +624,8 @@ public string Compose() {
foreach (string an in stable.all_slot) {
stable.slotMap[an] = stable.nslots++;
}
Revalidate();
stable.SetupVTables();
return null;
}

Expand Down

0 comments on commit 616e8ac

Please sign in to comment.