mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Use heuristic to determine the type to convert to for compile time types. Added parsing for generic
This commit is contained in:
12
test/test_suite/macros/macro_convert_literal.c3
Normal file
12
test/test_suite/macros/macro_convert_literal.c3
Normal 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));
|
||||
}
|
||||
Reference in New Issue
Block a user