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:
parent
2e7a0e1cdd
commit
121b9e26fb
18 changed files with 265 additions and 26 deletions
|
|
@ -1,7 +1,6 @@
|
|||
discard """
|
||||
errormsg: "type mismatch: got <string> but expected 'ptr'"
|
||||
line: 20
|
||||
disabled: true
|
||||
"""
|
||||
|
||||
import typetraits
|
||||
|
|
@ -12,7 +11,7 @@ type
|
|||
var x = Vec([1, 2, 3])
|
||||
|
||||
static:
|
||||
assert x.type.name == "Vec[static[int](3), int]"
|
||||
assert x.type.name == "Vec[3, system.int]"
|
||||
|
||||
var str1: string = "hello, world!"
|
||||
var ptr1: ptr = addr(str1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue