1176 – Error missing file and line number

D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 1176 - Error missing file and line number
Summary: Error missing file and line number
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D1 (retired)
Hardware: x86 All
: P2 normal
Assignee: Walter Bright
URL:
Keywords: diagnostic
Depends on:
Blocks:
Reported: 2007年04月23日 03:41 UTC by Bill Baxter
Modified: 2014年02月16日 15:22 UTC (History)
0 users

See Also:


Attachments
Add an attachment (proposed patch, testcase, etc.)

Note You need to log in before you can comment on or make changes to this issue.
Description Bill Baxter 2007年04月23日 03:41:50 UTC
"Error: cannot implicitly convert expression (_param_0) of type luigi.gui.Widget to luigi.gui.Button"
The above error appeared because of a line of code like this:
 b31b.clicked ~= (Button b){
 onApplyTexture();
 };
All error messages should print file an line numbers, preferably in the form:
 <filename>(<linenumber>): Error: <the message>
This makes it easier for IDEs and text editors to automatically take the user to the line that generated the error.
Comment 1 Thomas Kühne 2007年04月27日 12:33:07 UTC
test case:
http://dstress.kuehne.cn/nocompile/v/void_02_D.d 
Comment 2 Don 2008年07月09日 07:12:26 UTC
Fixed DMD1.032
Comment 3 Walter Bright 2008年07月09日 22:38:33 UTC
Fixed dmd 1.032 and 2.016


AltStyle によって変換されたページ (->オリジナル) /