Skip to content

Commit 1feddfe

Browse files
authored
example
1 parent f2aa01a commit 1feddfe

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

examples/class_example.oni

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
use "std"
2+
3+
class Test() {
4+
hello_world = "Hello, world!"
5+
6+
testfl = ldef() {
7+
print(hello_world)
8+
}
9+
10+
def testf() {
11+
print(hello_world)
12+
}
13+
}
14+
15+
init Test()
16+
testfl()
17+
testf()
18+
19+
stop()

0 commit comments

Comments
 (0)