blob: 2586e08777bd92f41c4dc4368df6f83f70e4debe (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
discard """
errormsg: "ambiguous call"
"""
type
A[T] = object
C = object
proc test[T: A](param: T): bool = false
proc test(param: A): bool = true
doAssert test(A[C]()) == true # previously would pass
|