Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
cooldome authored and ardek66 committed Mar 26, 2021
1 parent c29a5e6 commit b05a3d8
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/types/tisopr.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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)")

0 comments on commit b05a3d8

Please sign in to comment.