chiark / gitweb /
src/foo.sod: Split `Second' off into its own separate chain.
[sod] / src / foo.sod
index 9db34bae19eab0b64c7524bcbf4b35b0d90c558c..049179b8401d4d5778c5515b5612f705b0923b31 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; }
 }