mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-30 01:44:37 +00:00
@@ -121,3 +121,17 @@ block:
|
||||
doAssert($s.a & " " & $s.b == "x1 x3")
|
||||
|
||||
enumGen(x1..x3)
|
||||
|
||||
block:
|
||||
# issue #11142
|
||||
type
|
||||
MyObjParam[N: static int] = object
|
||||
x: int
|
||||
|
||||
MyObj[P: static MyObjParam] = object
|
||||
y: int
|
||||
|
||||
const P = MyObjParam[256](x: 2)
|
||||
let Q = MyObj[P](y: 2)
|
||||
doAssert($Q == "(y: 2)")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user