doc: add var syntax samples

This commit is contained in:
2025-04-15 11:05:52 +01:00
parent ae35c15f78
commit ccb31ae545
4 changed files with 26 additions and 23 deletions

1
doc/sample/Person.im Executable file → Normal file
View File

@@ -48,6 +48,7 @@ class Person
compatibility with lambdas.
**/
- init(name:name age:age)
var x.
self::name = name.
self::age = age!