Skip to content

dotcall mismatch #1072

@fowlmouth

Description

@fowlmouth
/tmp/aporia/a27.nim(9, 8) Error: type mismatch: got (int, int)
but expected one of:
a27.()(l: string, r: string): string
var x: int

proc foo (some:int):int = some
when true:
  proc `()` (l,r:string): string = nil

block:
  var foo = 42
  echo x.foo

works when no () is defined

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions