[Issue 6338] Immutability is lost for shared(immutable(T))
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Sep 16 18:20:45 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6338
Jerry Quinn <jlquinn at optonline.net> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jlquinn at optonline.net
--- Comment #2 from Jerry Quinn <jlquinn at optonline.net> 2011-09-16 18:20:22 PDT ---
I think the collapsing might be required. I was going to report this
separately but it looks like a facet of your bug.
import std.stdio;
synchronized class foo {
File file;
this(string infile) {
file.open(infile);
}
}
~/dmd2/linux/bin64/dmd -c junk.d
junk.d(5): Error: function std.stdio.File.open (string name, in const(char[])
stdioOpenmode = "rb") is not callable using argument types (string) shared
/home/jlquinn/dmd2/linux/bin64/../../src/phobos/std/stdio.d(292): Error:
destructor std.stdio.File.~this () is not callable using argument types ()
The compiler (dmd 2.055) doesn't realize that shared(string) is equivalent to
string.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list