mirror of
https://codeberg.org/ProgramSnail/lang.git
synced 2025-12-05 22:48:43 +00:00
Most fixes done, build working (without typecheck fixes, is_scoped proper propogation and executor views)
This commit is contained in:
parent
d02c3a637b
commit
5891066414
33 changed files with 1391 additions and 960 deletions
|
|
@ -33,8 +33,7 @@ func {
|
|||
: example of function with optional arguments (without type annotation)
|
||||
: real type is 'A? 'A? -> 'A?
|
||||
sum 'a? 'b? =
|
||||
'a & 'b =: %a? & %b? => a + b
|
||||
=: _ => null;
|
||||
'a & 'b =: %a => a;
|
||||
|
||||
|
||||
: example that shows that default annotations are argument names (without ')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue