summary refs log tree commit diff stats
path: root/nimsuggest/tests/tstrutils.nim
blob: 9462c3d99e825addabb56c3807dfd0d8ad6643ad (plain) (blame)
1
2
3
4
5
6
7
8
9
10
discard """
disabled:true
$nimsuggest --tester lib/pure/strutils.nim
>def lib/pure/strutils.nim:2529:6
def;;skTemplate;;system.doAssert;;proc (cond: bool, msg: string): typed;;*/lib/system.nim;;*;;9;;"same as `assert` but is always turned on and not affected by the\x0A``--assertions`` command line switch.";;100
"""

# Line 2529 in strutils.nim is doAssert and this is unlikely to change
# soon since there are a whole lot of doAsserts there.
lass="o">= 0):int = x + 3 * y proc singlearg(x:int):int = 20*x echo optarg 1, singlearg 2 proc foo(x: int): int = x-1 proc foo(x, y: int): int = x-y let x = optarg foo 7.foo let y = singlearg foo(1, foo 8) let z = singlearg 1.foo foo 8 echo x, y, z let a = [2,4,8].map do (d:int) -> int: d + 1 echo a[0], a[1], a[2]