summary refs log blame commit diff stats
path: root/tests/generics/tinheritable_importcpp.nim
blob: 8ee18b70b21d19a1a9bfd63b0640084d5173ff69 (plain) (tree)
1
2
3
4
5
6
7
8
9
10









                                                                                     
discard """
  targets: "cpp"
  action: compile
"""

# #4651
type
  Vector[T] {.importcpp: "std::vector<'0 >", header: "vector", inheritable.} = object
  VectorDerived {.importcpp: "SomeVectorDerived", nodecl.} = object of Vector[int]
  # Error: inheritance only works with non-final objects