doc: add var syntax samples
This commit is contained in:
1
doc/sample/Person.im
Executable file → Normal file
1
doc/sample/Person.im
Executable file → Normal file
@@ -48,6 +48,7 @@ class Person
|
||||
compatibility with lambdas.
|
||||
**/
|
||||
- init(name:name age:age)
|
||||
var x.
|
||||
self::name = name.
|
||||
self::age = age!
|
||||
|
||||
|
||||
Reference in New Issue
Block a user