Merge: doc: fixed some typos and other misc. corrections
[nit.git] / tests / test_ffi_c_super.nit
index 8b241ff..1353325 100644 (file)
@@ -21,17 +21,17 @@ end
 class B
        super A
 
-       redef fun id : String import super, NativeString.to_s, String.to_cstring `{
+       redef fun id : String import super, CString.to_s, String.to_cstring `{
                char *new_name;
                char *prefix = "B special ";
-               char *super_name = String_to_cstring( B_id___super( recv ) );
+               char *super_name = String_to_cstring( B_id___super( self ) );
 
                new_name = calloc( strlen( prefix )+strlen( super_name )+1, sizeof(char) );
                strcpy( new_name, prefix );
                strcpy( new_name+strlen( prefix ), super_name );
                new_name[ strlen( prefix )+strlen( super_name ) ] = '\0';
 
-               return NativeString_to_s( new_name );
+               return CString_to_s( new_name );
        `}
 end