1158 – Missing line number: invalid mixin outside function scope

D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 1158 - Missing line number: invalid mixin outside function scope
Summary: Missing line number: invalid mixin outside function scope
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D1 (retired)
Hardware: x86 All
: P3 minor
Assignee: Walter Bright
URL:
Keywords: diagnostic
: 2153 (view as issue list)
Depends on:
Blocks:
Reported: 2007年04月17日 12:41 UTC by Matti Niemenmaa
Modified: 2014年02月16日 15:25 UTC (History)
1 user (show)

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 Matti Niemenmaa 2007年04月17日 12:41:24 UTC
mixin(2);
The above line generates the error "attribute argument to mixin must be a string, not (2)", but includes module and line number information only if placed within function scope.
Comment 1 Matti Niemenmaa 2007年04月17日 12:50:57 UTC
Also happens with syntactically valid mixins resulting in invalid statements:
mixin("2");
Comment 3 Don 2008年06月19日 06:58:00 UTC
*** Bug 2153 has been marked as a duplicate of this bug. ***
Comment 4 Don 2008年07月09日 07:13:37 UTC
Fixed DMD1.032
Comment 5 Walter Bright 2008年07月09日 22:38:12 UTC
Fixed dmd 1.032 and 2.016


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