[Mono-bugs] [Bug 619919] New: Capturing of base scope
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Mon Jul 5 13:07:29 EDT 2010
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: mono-bugs at lists.ximian.com
ReportedBy: msafar at novell.com
QAContact: mono-bugs at lists.ximian.com
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.
More information about the mono-bugs
mailing list