extend default to s64
This commit is contained in:
12
examples/24-list.sx
Normal file
12
examples/24-list.sx
Normal file
@@ -0,0 +1,12 @@
|
||||
#import "modules/std.sx";
|
||||
|
||||
List :: struct ($T: Type) {
|
||||
items: [*]T = .[];
|
||||
len: s32 = 0;
|
||||
cap: s32 = 0;
|
||||
}
|
||||
|
||||
main :: () {
|
||||
list := List(s32).{};
|
||||
print("{}\n", list);
|
||||
}
|
||||
Reference in New Issue
Block a user