Skip to content

Commit

Permalink
close #11142 (#15847)
Browse files Browse the repository at this point in the history
(cherry picked from commit 9455a0c)
  • Loading branch information
cooldome authored and narimiran committed Nov 9, 2020
1 parent ac25f63 commit 0ed4c2b
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 0ed4c2b

Please sign in to comment.