s repository contains the Nim compiler, Nim's stdlib, tools, and documentation. (mirror)
summary refs log tree commit diff stats
path: root/tests/types/tparameterizedparent3.nim
blob: 58aaf80eae422837f658010c00aa4358fe29fdd5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
discard """
  file: "tparameterizedparent3.nim"
  line: 13
  errormsg: "attempt to redefine: 'color'"
"""
# bug #5264
type
  FruitBase = object of RootObj
    color: int

  Apple[T] = object of T
    width: int
    color: int

var x: Apple[FruitBase]