mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-12 14:23:45 +00:00
21 lines
290 B
Nim
21 lines
290 B
Nim
discard """
|
|
errormsg: "type mismatch: got <proc [*missing parameters*](x: int) | proc (x: string){.gcsafe.}>"
|
|
line: 19
|
|
"""
|
|
|
|
type
|
|
TGeneric[T] = object
|
|
x: int
|
|
|
|
proc foo[B](x: int) =
|
|
echo "foo1"
|
|
|
|
proc foo(x: string) =
|
|
echo "foo2"
|
|
|
|
proc bar(x: proc (x: int)) =
|
|
echo "bar"
|
|
|
|
bar foo
|
|
|