summary refs log blame commit diff stats
path: root/tests/discard/tneedsdiscard.nim
blob: 2df3531e73a6b1ce79d82fae3229593c1528ad93 (plain) (tree)
1
2
3
4
5
6
7
8
9

           
                                                      




              
 
                    
 
   
discard """
  line: 10
  errormsg: "value of type 'bool' has to be discarded"
"""

proc p =
  var f: TFile
  echo "hi"

  open(f, "arg.txt")

p()