Added test for forward declaration
This commit is contained in:
parent
ce136a7a3c
commit
d048870165
|
@ -0,0 +1,12 @@
|
|||
## Tests forward declarations
|
||||
import std;
|
||||
|
||||
|
||||
fn foo: int;
|
||||
|
||||
|
||||
print(foo());
|
||||
|
||||
|
||||
fn foo: int {return 42;}
|
||||
|
Loading…
Reference in New Issue