mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-28 18:24:01 +00:00
Static[T] fixes (#7333)
* 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
This commit is contained in:
@@ -300,7 +300,7 @@ reject wantsVarPointer2(pcat)
|
||||
|
||||
# covariance may be allowed for certain extern types
|
||||
|
||||
{.emit: """
|
||||
{.emit: """/*TYPESECTION*/
|
||||
template <class T> struct FN { typedef void (*type)(T); };
|
||||
template <class T> struct ARR { typedef T DataType[2]; DataType data; };
|
||||
""".}
|
||||
|
||||
@@ -2,7 +2,7 @@ discard """
|
||||
targets: "cpp"
|
||||
"""
|
||||
|
||||
{.emit: """
|
||||
{.emit: """/*TYPESECTION*/
|
||||
|
||||
template <class T>
|
||||
struct Vector {
|
||||
|
||||
Reference in New Issue
Block a user