Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
cooldome authored and mildred committed Jan 11, 2021
1 parent f6629f7 commit bcb8fe9
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 bcb8fe9

Please sign in to comment.