mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-29 01:14: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
228 B
Nim
20 lines
228 B
Nim
discard """
|
|
output: "1\n2\n3"
|
|
"""
|
|
|
|
type
|
|
MyConcept = concept x
|
|
someProc(x)
|
|
|
|
SomeSeq = seq[MyConcept]
|
|
|
|
proc someProc(x:int) = echo x
|
|
|
|
proc work (s: SomeSeq) =
|
|
for item in s:
|
|
someProc item
|
|
|
|
var s = @[1, 2, 3]
|
|
work s
|
|
|