mirror of
https://github.com/nim-lang/Nim.git
synced 2026-06-06 20:04:18 +00:00
fixes #23545
(cherry picked from commit 815bbf0e73)
This commit is contained in:
@@ -745,5 +745,18 @@ template main {.dirty.} =
|
||||
doAssert b.list[North] == 1
|
||||
|
||||
|
||||
block: # bug #23545
|
||||
proc evaluate(params: int) =
|
||||
discard
|
||||
|
||||
proc evaluate() =
|
||||
discard
|
||||
|
||||
type SearchInfo = object
|
||||
evaluation: proc() = evaluate
|
||||
|
||||
var a = SearchInfo()
|
||||
a.evaluation()
|
||||
|
||||
static: main()
|
||||
main()
|
||||
|
||||
Reference in New Issue
Block a user