mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-01 02:42:05 +00:00
19 lines
219 B
Nim
19 lines
219 B
Nim
discard """
|
|
errormsg: "ambiguous call;"
|
|
line: 16
|
|
"""
|
|
|
|
# bug #8568
|
|
|
|
type
|
|
D[T] = object
|
|
E[T] = object
|
|
|
|
proc g(a: D|E): string = "foo D|E"
|
|
proc g(a: D): string = "foo D"
|
|
|
|
proc test() =
|
|
let x = g D[int]()
|
|
|
|
test()
|