summary refs log tree commit diff stats
path: root/tests/cpp/tvector_iterator.nim
blob: c3886c5476961d2b4f6f98597f4256a9607b1456 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
discard """
  targets: "cpp"
"""

{.emit: """/*TYPESECTION*/

template <class T>
struct Vector {
  struct Iterator {};
};

""".}

type
  Vector[T] {.importcpp: "Vector".} = object
  VectorIterator[T] {.importcpp: "Vector<'0>::Iterator".} = object

var x: VectorIterator[void]