Skip to content

Commit 3201447

Browse files
committed
Added brace elison example
1 parent 7d8fb17 commit 3201447

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

koka/brace-elison.kk

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
fun no-braces()
2+
"Printed without braces"
3+
4+
fun with-braces() {
5+
"Printed with braces"
6+
}
7+
8+
fun main()
9+
println(no-braces())
10+
println(with-braces())

koka/test.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ function Assert-MatchTests {
99
}
1010

1111
$Error.clear()
12+
koka -v0 -e "$PSScriptRoot\brace-elison.kk" &&
1213
koka -v0 -e "$PSScriptRoot\clockhands.kk" |
1314
Compare-Object (Get-Content "$PSScriptRoot\..\test\clockhands_expected") |
1415
Assert-MatchTests &&

0 commit comments

Comments
 (0)