jwrapper: accept interfaces
[nit.git] / examples / callback_monkey.nit
index 8b04b94..6e1ed26 100644 (file)
@@ -58,7 +58,7 @@ interface MonkeyActionCallable
 end
 
 # Defining my object type Monkey, which is, in a low level, a pointer to a C struct (CMonkey)
-extern Monkey `{ CMonkey * `}
+extern class Monkey `{ CMonkey * `}
        
        new `{
                CMonkey *monkey = malloc( sizeof(CMonkey) );