Bug 8948 – Make error message more readable when assigning function pointers

Status
NEW
Severity
enhancement
Priority
P4
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-11-02T13:22:39Z
Last change time
2024-12-13T18:02:19Z
Keywords
bootcamp, diagnostic, pull
Assigned to
Andrej Mitrovic
Creator
Andrej Mitrovic
Moved to GitHub: dmd#18483 →

Comments

Comment #0 by andrej.mitrovich — 2012-11-02T13:22:39Z
void main() { void function() a; void function(int) b; b = a; } Before: test.d(7): Error: cannot implicitly convert expression (a) of type void function(int, float, string) to void function(float, int, string) After: test.d(7): Error: cannot implicitly convert expression (a) of type void function(int, float, string) to void function(float, int, string) This will make it easier to figure out why the types don't match.
Comment #1 by hsteoh — 2014-11-04T15:30:28Z
This bug was tagged with 'pull', but which pull is it?
Comment #2 by robert.schadek — 2024-12-13T18:02:19Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/18483 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB