2178 – 3 errors without line number: typeof

D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 2178 - 3 errors without line number: typeof
Summary: 3 errors without line number: typeof
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D1 (retired)
Hardware: x86 Windows
: P2 normal
Assignee: Walter Bright
URL:
Keywords: diagnostic
Depends on:
Blocks:
Reported: 2008年06月26日 03:46 UTC by Don
Modified: 2014年02月24日 16:00 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 Don 2008年06月26日 03:46:18 UTC
/*
linenumberbugs.d(179): Error: undefined identifier F
Error: cannot resolve .property for typeof(F).x
linenumberbugs.d(179): Error: undefined identifier F
linenumberbugs.d(179): Error: cannot resolve .property for typeof(F).x
*/
alias typeof(F).x b;
----------------------------
/*
Error: x is not a type
linenumberbugs.d(192): Error: x is not a type
*/
class F { int x; }
alias typeof(F).x b;
--------------------
/*
linenumberbugs.d(196): Error: this is not in a struct or class scope
linenumberbugs.d(196): Error: 'this' is only allowed in non-static member functi
ons, not linenumberbugs
Error: this for x needs to be type F not type int
*/
class F { int x; }
alias typeof(typeof(F).x) b;
Comment 1 Don 2008年07月09日 07:15:30 UTC
Fixed DMD1.032
Comment 2 Walter Bright 2008年07月09日 22:42:03 UTC
Fixed dmd 1.032 and 2.016


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