http://bugzilla.novell.com/show_bug.cgi?id=619919
http://bugzilla.novell.com/show_bug.cgi?id=619919#c0 Summary: Capturing of base scope Classification: Mono Product: Mono: Compilers Version: SVN Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: C# AssignedTo: [email protected] ReportedBy: [email protected] QAContact: [email protected] Found By: --- Blocker: --- Wrong IL is generated for using System; using System.Collections.Generic; class A { protected virtual int BaseM { get { return 2; } set { throw new NotImplementedException (); } } } class B : A { protected override int BaseM { set { } } } struct S { public IEnumerable<int> GetIt () { yield return base.GetHashCode (); } } class X : B { IEnumerable<int> GetIt () { yield return base.BaseM++; } static int Main () { foreach (var v in new X ().GetIt ()) Console.WriteLine (v); foreach (var v in new S ().GetIt ()) Console.WriteLine (v); return 0; } } -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. You are the assignee for the bug. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
