Skip to content

Commit

Permalink
closes nim-lang#21347; adds a test case (nim-lang#23917)
Browse files Browse the repository at this point in the history
  • Loading branch information
ringabout authored Aug 3, 2024
1 parent 12b9680 commit c97a20c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/generics/tgeneric0.nim
Original file line number Diff line number Diff line change
Expand Up @@ -186,3 +186,11 @@ block:

var b: JsonValueRef[string]
scanValue(b)

block: # bug #21347
type K[T] = object
template s[T]() = discard
proc b1(n: bool | bool) = s[K[K[int]]]()
proc b2(n: bool) = s[K[K[int]]]()
b1(false) # Error: 's' has unspecified generic parameters
b2(false) # Builds, on its own

0 comments on commit c97a20c

Please sign in to comment.