diff gen/classes.cpp @ 837:331a176c1f4f

Removed error on naked, not fully complete, but I'll be doing more work on it during this Christmas, and some things do work. Fixed taking delegate of final class method. see mini/delegate3.d.
author Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
date Tue, 09 Dec 2008 14:07:30 +0100
parents 3afe9f276db7
children 162a0502a6b9
line wrap: on
line diff
--- a/gen/classes.cpp	Tue Dec 09 03:01:19 2008 +0100
+++ b/gen/classes.cpp	Tue Dec 09 14:07:30 2008 +0100
@@ -1260,6 +1260,7 @@
 {
     // sanity checks
     assert(fdecl->isVirtual());
+    assert(!fdecl->isFinal());
     assert(fdecl->vtblIndex > 0); // 0 is always ClassInfo/Interface*
     assert(inst->getType()->toBasetype()->ty == Tclass);