some love for the testsuite; fixed regressions

This commit is contained in:
Araq 2015-03-01 21:41:21 +01:00
commit 24ae0c387f
19 changed files with 133 additions and 51 deletions

View 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.