parent
976095c894
commit
0ff1190fe7
6 changed files with 184 additions and 2 deletions
14
tests/types/tparameterizedparent1.nim
Normal file
14
tests/types/tparameterizedparent1.nim
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
discard """
|
||||
file: "tparameterizedparent1.nim"
|
||||
line: 14
|
||||
errormsg: "inheritance only works with non-final objects"
|
||||
"""
|
||||
# bug #5264
|
||||
type
|
||||
FruitBase = object
|
||||
color: int
|
||||
|
||||
Apple[T] = object of T
|
||||
width: int
|
||||
|
||||
var x: Apple[FruitBase]
|
||||
Loading…
Add table
Add a link
Reference in a new issue