Nim icon indicating copy to clipboard operation
Nim copied to clipboard

implicit generics and explicit generics affect overload resolution

Open krux02 opened this issue 6 years ago • 0 comments

The following example works, but it should really be an error for an ambiguous identifier.

Example

template foo(arg: typedesc) =
  echo "A"

template foo[T](arg: typedesc[T]) =
  echo "B"

foo(int)

Current Output

B

Expected Output

Error: ambiguous identifier: foo

krux02 avatar Aug 20 '19 07:08 krux02