summary refs log tree commit diff stats
path: root/tests/js/tjsffi_old.nim
Commit message (Expand)AuthorAgeFilesLines
* js: improve tests + some docs (#16727)Timothee Cour2021-01-161-0/+3
* clean up deprecated stuff and unused imports in tests (#13059)Miran2020-01-071-2/+1
* importjs symbol (#12218)Arne Döring2019-09-201-0/+338
m?h=devel&id=3e5e18bc5d3391cc9bb7fe5e0a4856dad09cbd71'>^
a690e7b26 ^


e80465dac ^
a690e7b26 ^

e80465dac ^
a690e7b26 ^


30823c1ce ^
a690e7b26 ^
30823c1ce ^
a690e7b26 ^

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
           
                           

                  


                                          
                                 

                
           


                                                           
                  
           
                 

      
discard """
  errormsg: "type mismatch"
  file: "tnot.nim"
  line: 14
"""
# BUG: following compiles, but should not:

proc nodeOfDegree(x: int): bool =
  result = false

proc main =
  for j in 0..2:
    for i in 0..10:
      if not nodeOfDegree(1) >= 0: #ERROR_MSG type mismatch
        echo "Yes"
      else:
        echo "No"

main()