[Issue 11489] New: Improper implicit cast to immutable.
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Nov 9 12:23:38 PST 2013
https://d.puremagic.com/issues/show_bug.cgi?id=11489
Summary: Improper implicit cast to immutable.
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: shammah.chancellor at gmail.com
--- Comment #0 from Shammah Chancellor <shammah.chancellor at gmail.com> 2013-11-09 12:23:37 PST ---
import std.stdio;
class Hmm
{
int Hmmor;
}
class A {
Hmm bar;
}
class Foo : A {
this( Hmm _bar) pure
{
bar = _bar;
}
}
void sendA(immutable A input)
{
}
void sendFoo(immutable Foo input)
{
}
void main()
{
auto wat = new Hmm();
sendA( new Foo(wat));
}
--
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