nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge: Some metrics improvement and cleaning
[nit.git]
/
tests
/
test_ffi_c_super.nit
diff --git
a/tests/test_ffi_c_super.nit
b/tests/test_ffi_c_super.nit
index
d9672bc
..
8b241ff
100644
(file)
--- a/
tests/test_ffi_c_super.nit
+++ b/
tests/test_ffi_c_super.nit
@@
-21,7
+21,7
@@
end
class B
super A
class B
super A
- redef fun id : String import super, String::from_cstring, String::to_cstring `{
+ redef fun id : String import super, NativeString.to_s, String.to_cstring `{
char *new_name;
char *prefix = "B special ";
char *super_name = String_to_cstring( B_id___super( recv ) );
char *new_name;
char *prefix = "B special ";
char *super_name = String_to_cstring( B_id___super( recv ) );
@@
-31,7
+31,7
@@
class B
strcpy( new_name+strlen( prefix ), super_name );
new_name[ strlen( prefix )+strlen( super_name ) ] = '\0';
strcpy( new_name+strlen( prefix ), super_name );
new_name[ strlen( prefix )+strlen( super_name ) ] = '\0';
- return new_String_from_cstring( new_name );
+ return NativeString_to_s( new_name );
`}
end
`}
end