mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 17:04:41 +00:00
* fix the usage of unresolved static[T] parameters in proc signatures * fix tsametype and tmacrogenerics * Allow creating composite type classes with concepts and using them in type signatures * Allow integers to be used in ident concatenations * Support using imported C++ generic types in proc signatures * fixes #7230 * closes #7379 * re-enable some metatype tests
20 lines
279 B
Nim
20 lines
279 B
Nim
discard """
|
|
targets: "cpp"
|
|
"""
|
|
|
|
{.emit: """/*TYPESECTION*/
|
|
|
|
template <class T>
|
|
struct Vector {
|
|
struct Iterator {};
|
|
};
|
|
|
|
""".}
|
|
|
|
type
|
|
Vector {.importcpp: "Vector".} [T] = object
|
|
VectorIterator {.importcpp: "Vector<'0>::Iterator".} [T] = object
|
|
|
|
var x: VectorIterator[void]
|
|
|