Fixed a ton of stuff with function templates. Works well now. Next up: multiple template types and fixing object definition ordering (both where templates should go and objects with other pointers)
This commit is contained in:
9
stdlib/trivial_container.krak
Normal file
9
stdlib/trivial_container.krak
Normal file
@@ -0,0 +1,9 @@
|
||||
import io;
|
||||
|
||||
typedef template <T> trivialContainer {
|
||||
T data;
|
||||
void print() {
|
||||
print(data);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user