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: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Shammah Chancellor <[email protected]>
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: -------