[Issue 4539] Refuse assignment to string literal
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Jan 31 17:09:51 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=4539
--- Comment #20 from bearophile_hugs at eml.cc 2012-01-31 17:09:46 PST ---
(In reply to comment #18)
> Yes, it is expected behavior.
I have just seen that some of my code that used to compile now gives a problem.
This is a reduced version:
void foo(ref string t) {}
void main() {
immutable string s;
foo(s);
}
DMD 2.058head gives:
test.d(4): Error: function test.foo (ref string t) is not callable using
argument types (immutable(char[]))
Is this correct?
--
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