2340 – Template properties don't work

D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 2340 - Template properties don't work
Summary: Template properties don't work
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: x86 Linux
: P2 normal
Assignee: Walter Bright
URL:
Keywords:
Depends on:
Blocks:
Reported: 2008年09月06日 20:19 UTC by Andrei Alexandrescu
Modified: 2015年06月09日 01:31 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 Andrei Alexandrescu 2008年09月06日 20:19:37 UTC
struct A
{
 void foo(int) {}
 void bar(T)(T) {}
}
void main()
{
 A a;
 a.foo = 5;
 a.bar = 6;
}
The last line of main does not compile.
Comment 1 Walter Bright 2008年10月20日 22:18:32 UTC
Fixed dmd 1.036 and 2.020


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