http://d.puremagic.com/issues/show_bug.cgi?id=6848
Summary: typeof(super) does not take into account const/immutable attributes inside member functions Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: k.hara...@gmail.com --- Comment #0 from Kenji Hara <k.hara...@gmail.com> 2011-10-24 22:01:10 PDT --- This is similar to bug 6695. class Foo {} class Bar : Foo { void func() immutable { pragma(msg, typeof(this)); // immutable(Bar) auto t = this; pragma(msg, typeof(t)); // immutable(Bar) pragma(msg, typeof(super)); // Foo instead of immutable(Foo) auto s = super; pragma(msg, typeof(s)); // Foo instead of immutable(Foo) } } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------