Added test for forward declaration

This commit is contained in:
Mattia Giambirtone 2022-11-05 14:04:08 +01:00
parent ce136a7a3c
commit d048870165
1 changed files with 12 additions and 0 deletions

12
tests/fwd.pn Normal file
View File

@ -0,0 +1,12 @@
## Tests forward declarations
import std;
fn foo: int;
print(foo());
fn foo: int {return 42;}