Use heuristic to determine the type to convert to for compile time types. Added parsing for generic

This commit is contained in:
Christoffer Lerno
2021-07-22 18:45:39 +02:00
parent d5f5d59a37
commit c4aa366592
13 changed files with 185 additions and 157 deletions

View File

@@ -0,0 +1,12 @@
module foo;
import std::io;
macro foo(y)
{
return y * y;
}
func void main()
{
io::printf("%d\n", @foo(10));
}