fixes #6889
This commit is contained in:
parent
b0c682de4d
commit
f70d967d2c
2 changed files with 18 additions and 0 deletions
|
|
@ -98,3 +98,18 @@ proc print(pos: Position) =
|
|||
var x = 0.n16
|
||||
var y = 0.n16
|
||||
print((x, y))
|
||||
|
||||
|
||||
# bug #6889
|
||||
proc createProgressSetterWithPropSetter[T](setter: proc(v: T)) = discard
|
||||
|
||||
type A = distinct array[4, float32]
|
||||
type B = distinct array[3, float32]
|
||||
|
||||
type Foo[T] = tuple
|
||||
setter: proc(v: T)
|
||||
|
||||
proc getFoo[T](): Foo[T] = discard
|
||||
|
||||
createProgressSetterWithPropSetter(getFoo[A]().setter)
|
||||
createProgressSetterWithPropSetter(getFoo[B]().setter)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue