Reset typedescMatched before paramTypesMatch (#8250)
The flag should not be carried out across different parameters. Fixes #7794
This commit is contained in:
parent
dec97924a4
commit
c6671776a1
2 changed files with 18 additions and 0 deletions
15
tests/generics/t7794.nim
Normal file
15
tests/generics/t7794.nim
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
discard """
|
||||
output: '''
|
||||
10
|
||||
2.0
|
||||
'''
|
||||
"""
|
||||
|
||||
type
|
||||
Data*[T:SomeNumber, U:SomeReal] = ref object
|
||||
x*: T
|
||||
value*: U
|
||||
|
||||
var d = Data[int, float64](x:10.int, value:2'f64)
|
||||
echo d.x
|
||||
echo d.value
|
||||
Loading…
Add table
Add a link
Reference in a new issue