some love for the testsuite; fixed regressions
This commit is contained in:
parent
566ee874cd
commit
24ae0c387f
19 changed files with 133 additions and 51 deletions
17
tests/overload/tprefer_tygenericinst.nim
Normal file
17
tests/overload/tprefer_tygenericinst.nim
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
discard """
|
||||
output: "Version 2 was called."
|
||||
disabled: true
|
||||
"""
|
||||
|
||||
# bug #2220
|
||||
|
||||
type A[T] = object
|
||||
type B = A[int]
|
||||
|
||||
proc p[X](x: X) =
|
||||
echo "Version 1 was called."
|
||||
|
||||
proc p(x: B) =
|
||||
echo "Version 2 was called."
|
||||
|
||||
p(B()) # This call reported as ambiguous.
|
||||
Loading…
Add table
Add a link
Reference in a new issue