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