summary refs log tree commit diff stats
path: root/tests/objects
Commit message (Collapse)AuthorAgeFilesLines
* Added support for {.packed.} pragma on objectsAudun Wilhelmsen2014-03-181-0/+49
| | | | Added tests for packed and union pragmas
* next steps for closure iteratorsAraq2014-01-229-0/+280
|
* new tester; all tests categorizedAraq2014-01-131-0/+52
vious revision' href='/ahoang/Nim/blame/tests/reject/teffects2.nim?h=devel&id=9fea5b8f69758e9cb1cd2043d55fae66f3987df7'>^
e80465dac ^
d7d059a68 ^
e80465dac ^
6dd2c2d76 ^

d7d059a68 ^
69e15ac32 ^
6dd2c2d76 ^

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





                                     
 
                              
 

                             
                                        
                         

                
                                    
 
discard """
  line: 19
  errormsg: "can raise an unlisted exception: ref IOError"
"""

type
  TObj = object {.pure, inheritable.}
  TObjB = object of TObj
    a, b, c: string

  EIO2 = ref object of IOError

proc forw: int {.raises: [].}

proc lier(): int {.raises: [IOError].} =
  writeLine stdout, "arg"

proc forw: int =
  raise newException(IOError, "arg")