src/foo.sod: Split `Second' off into its own separate chain.
authorMark Wooding <mdw@distorted.org.uk>
Sat, 15 Aug 2015 15:15:16 +0000 (16:15 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sat, 15 Aug 2015 15:15:16 +0000 (16:15 +0100)
src/foo.sod

index 9db34ba..049179b 100644 (file)
@@ -17,7 +17,7 @@ class Test : SodObject {
   void dec() { me->test.x--; }
 }
 
-[link = Test, nick = snd]
+[nick = snd]
 class Second : Test {
-  void test.dec() { me->test.x -= 3; }
+  void test.dec() { Test *t = SECOND__CONV_TEST(me); t->test.x -= 3; }
 }