Allow nested para-poly procedures

This commit is contained in:
Ginger Bill
2017-06-25 22:29:23 +01:00
parent 1ced92be47
commit 4e7150b470
4 changed files with 92 additions and 57 deletions

View File

@@ -2,11 +2,12 @@ import (
"fmt.odin";
)
proc new_type(T: type) -> ^T {
return ^T(alloc(size_of(T), align_of(T)));
}
proc main() {
proc new_type(T: type) -> ^T {
return ^T(alloc(size_of(T), align_of(T)));
}
var ptr = new_type(int);
ptr^ = 123;