aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/examples/x.nim
blob: 4bf0de73793ff6c44c1890d8e1a09d9326a5df2f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# Tests for Nim
let s = "foobar"

# Feature #1260
{.ident.}
stdin.readLine.split.map(parseInt).max.`$`.echo(" is the maximum!")

# Feature #1261
# IsFuncName("proc") so style ticks as SCE_NIM_FUNCNAME:
proc `$` (x: myDataType): string = ...
# Style ticks as SCE_NIM_BACKTICKS:
if `==`( `+`(3,4),7): echo "True"