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