Chuck inheritance and static methods
02.01.15
Here's another Chuck surprise: a subclass won't inherit its parent's static methods. So:
class Parent { fun static void test() { <<< "Parent.test()" >>>; } } class Child extends Parent {} Parent.test(); // this works Child.test(); // this fails
Child.test() triggers the error "Assertion failed: (func != NULL), function emit_engine_emit_exp_dot_member, file chuck_emit.cpp, line 3416". Chuck says Happy New Year. :)
0 comments
Add a comment
PS: no links allowed in comment.