summary refs log tree commit diff stats
path: root/tests/ccgbugs/targ_lefttoright.nim
Commit message (Expand)AuthorAgeFilesLines
* remove deprecated type pragma syntax, fix bugs that required it (#20199)metagn2022-09-031-1/+1
* fixes https://github.com/status-im/nimbus-eth2/issues/1549 (#16146)Andreas Rumpf2020-11-261-0/+1
* Fix #14396 (#14793)Clyybber2020-07-041-0/+70
acf8e62ad8cfbd33984f9549a9e57684c'>^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18




                                                                                                              

                                                        










                                   
discard """
  cmd: "nim check --hints:off $file"
  errormsg: ""
  nimout: '''
t18886.nim(18, 24) Error: ambiguous identifier: 'bar' -- you need a helper proc to disambiguate the following:
  t18886.bar: proc (i: ptr int){.noSideEffect, gcsafe.}
  t18886.bar: proc (i: ptr char){.noSideEffect, gcsafe.}
'''
"""

type Foo = (proc(_: pointer): void)


proc bar(i: ptr[int]) = discard
proc bar(i: ptr[char]) = discard


let fooBar = cast[Foo](bar)