HigherOrderCO / Bend

A massively parallel, high-level programming language
https://higherorderco.com
Apache License 2.0
17.51k stars 428 forks source link

Can't make an ADT where the field is an arrow type. #710

Closed NoamDev closed 2 months ago

NoamDev commented 2 months ago

Reproducing the behavior

Running command bend run-c main.bend With code

type Fun:
  nat2nat {f: u24->u24}

def main:
  return 1

Error:

Errors:
In main.bend :
- expected: ','
- detected:
  2 |   nat2nat {f: u24->u24}

Expected behavior: This should check.

System Settings

Example:

Additional context

No response