new tester; all tests categorized
This commit is contained in:
parent
51ee524109
commit
20b5f31c03
481 changed files with 794 additions and 2506 deletions
24
tests/effects/teffects4.nim
Normal file
24
tests/effects/teffects4.nim
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
discard """
|
||||
line: 23
|
||||
errormsg: "type mismatch"
|
||||
"""
|
||||
|
||||
type
|
||||
TObj = object {.pure, inheritable.}
|
||||
TObjB = object of TObj
|
||||
a, b, c: string
|
||||
fn: proc (): int {.tags: [FReadIO].}
|
||||
|
||||
EIO2 = ref object of EIO
|
||||
|
||||
proc q() {.tags: [FIO].} =
|
||||
nil
|
||||
|
||||
proc raiser(): int =
|
||||
writeln stdout, "arg"
|
||||
if true:
|
||||
q()
|
||||
|
||||
var o: TObjB
|
||||
o.fn = raiser
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue