Check for empty generic declaration list

This commit is contained in:
Ginger Bill
2017-06-12 16:58:25 +01:00
parent f52a1e4ded
commit e6a206a430
3 changed files with 15 additions and 5 deletions
+7
View File
@@ -1,3 +1,10 @@
proc new_string(s: string) -> string {
var c = make([]u8, len(s)+1);
copy(c, []u8(s));
c[len(s)] = 0;
return string(c[0..<len(s)]);
}
proc new_c_string(s: string) -> ^u8 {
var c = make([]u8, len(s)+1);
copy(c, []u8(s));