about summary refs log tree commit diff stats
path: root/js/games/nluqo.github.io/~bh/bjc
diff options
context:
space:
mode:
authorelioat <elioat@tilde.institute>2024-12-24 20:00:10 -0500
committerelioat <elioat@tilde.institute>2024-12-24 20:00:10 -0500
commit899e28462fd2eb6a0443b06a6519989413b4106a (patch)
tree9c29b6d350d0903721221efcbbf6464686f78a33 /js/games/nluqo.github.io/~bh/bjc
parent8d8903405dc8963c71452fa4d834b0731dd4d8b9 (diff)
downloadtour-899e28462fd2eb6a0443b06a6519989413b4106a.tar.gz
*
Diffstat (limited to 'js/games/nluqo.github.io/~bh/bjc')
0 files changed, 0 insertions, 0 deletions
t2.nim?h=devel&id=499ae7297bd7d106525a296312d1653e8bf80b7e'>^
538c6c989 ^


162f5ddb7 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
                                                         















                                                                    
                                         
       


                                                                   

               


                                                    
   
# Test basic editing. We replace the 'false' by 'true' to
# see whether then the z field is suggested.

const zField = 0i32

type
  Foo = object
    x, y: int
    when zField == 1i32:
      z: string

proc main(f: Foo) =
  f.#[!]#

# the tester supports the spec section at the bottom of the file and
# this way, the line numbers more often stay the same
discard """
$nimsuggest --tester --maxresults:3 $file
>sug $1
sug;;skField;;x;;int;;$file;;8;;4;;"";;100;;None
sug;;skField;;y;;int;;$file;;8;;7;;"";;100;;None
sug;;skProc;;tdot2.main;;proc (f: Foo);;$file;;12;;5;;"";;100;;None
!edit 0i32 1i32
>sug $1
sug;;skField;;x;;int;;$file;;8;;4;;"";;100;;None
sug;;skField;;y;;int;;$file;;8;;7;;"";;100;;None
sug;;skField;;z;;string;;$file;;10;;6;;"";;100;;None
"""