new tester; all tests categorized
This commit is contained in:
parent
51ee524109
commit
20b5f31c03
481 changed files with 794 additions and 2506 deletions
27
tests/types/tinheritref.nim
Normal file
27
tests/types/tinheritref.nim
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
discard """
|
||||
output: "23"
|
||||
"""
|
||||
|
||||
# bug #554, #179
|
||||
|
||||
type T[E] =
|
||||
ref object
|
||||
elem: E
|
||||
|
||||
var ob: T[int]
|
||||
|
||||
ob = T[int](elem: 23)
|
||||
echo ob.elem
|
||||
|
||||
type
|
||||
TTreeIteratorA* = ref object {.inheritable.}
|
||||
|
||||
TKeysIteratorA* = ref object of TTreeIteratorA #compiles
|
||||
|
||||
TTreeIterator* [T,D] = ref object {.inheritable.}
|
||||
|
||||
TKeysIterator* [T,D] = ref object of TTreeIterator[T,D] #this not
|
||||
|
||||
var
|
||||
it: TKeysIterator[int, string] = nil
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue