Files
Nim/tests/cpp/vector_iterator.nim
Zahary Karadjov 6fb372d96b The getSubsystem<T> example in the manual currently fails with a codegen error
A faulty proc declaration is generated:
N_NIMCALL(System::Input*, SystemManager::getSubsystem<'*0>())(void);
The manual has been edited to add a nodecl pragma, which alleviates the issue

Fix a typo in the vector_iterator example from the previous commit.
2015-04-14 00:03:31 +03:00

20 lines
270 B
Nim

discard """
cmd: "nim cpp $file"
"""
{.emit: """
template <class T>
struct Vector {
struct Iterator {};
};
""".}
type
Vector {.importcpp: "Vector".} [T] = object
VectorIterator {.importcpp: "Vector<'0>::Iterator".} [T] = object
var x: VectorIterator[void]