commit 3f7861cf98647b845043253ed37df0954c8fa42e parent 5d26953aa0f5dbc6cd0a3e394cfbc409e46bb21c Author: citbl <citbl@citbl.org> Date: Thu, 4 Jun 2026 20:12:05 +1000 minor Diffstat:
| A | target.mty | | | 20 | ++++++++++++++++++++ |
1 file changed, 20 insertions(+), 0 deletions(-)
diff --git a/target.mty b/target.mty @@ -0,0 +1,20 @@ +struct Person :: + int age + float height + str name + fx to_string() :: print("{name} is {age} years old and {height}cm tall.") end + fx add() float :: return .height + .age end +end + +pub struct Persona :: Person p end + +enum Color :: + RED + GREEN + BLUE +end + +fx main() :: + print("hello") +end +