[Issue 5105] Member function template cannot be synchronized
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Mar 12 13:24:27 PDT 2014
https://d.puremagic.com/issues/show_bug.cgi?id=5105
Adrien Pensart <crunchengine at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution| |FIXED
--- Comment #4 from Adrien Pensart <crunchengine at gmail.com> 2014-03-12 13:24:21 PDT ---
The test case was invalid, shared and synchronized keywords modifies the type
of object when applied on class.
synchronized class synchronized_C
{
void foo(T)(T a) {}
}
shared class shared_C
{
void foo(T)(T a) {}
}
synchronized shared class synchronized_shared_C
{
void foo(T)(T a) {}
}
void main()
{
auto c1 = new shared synchronized_C;
c1.foo(10);
auto c2 = new shared shared_C;
c2.foo(10);
auto c3 = new shared synchronized_shared_C;
c3.foo(10);
}
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list