History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: RSRP-33989
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Dmitry Lomov
Reporter: Corey Kosak
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
ReSharper

incorrectly claims GetEnumerator is not implemented

Created: 01 Jan 07 08:34   Updated: 11 Jul 08 15:58
Component/s: Code Analysis
Fix Version/s: 4.0
Security Level: Everybody (All jira users)

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown

Build: 330
Fixed in build: 819


 Description  « Hide
This code compiles without error, but ReSharper believes that

Interface member 'IEnumerator<List<FalseWarning.InnerClass>> System.Collections.Generic.IEnumerable<List<FalseWarning.InnerClass>>.GetEnumerator()' is not implemented

using System;
using System.Collections;
using System.Collections.Generic;

namespace Test {

 public class FalseWarning : IEnumerable<List<FalseWarning.InnerClass>> { //warning here

    public class InnerClass {
      public String value;

      public InnerClass(String value) {
        this.value = value;
      }
    }

    List<List<FalseWarning.InnerClass>> list = new List<List<InnerClass>>();

    public FalseWarning() {
      InnerClass innerClass = new InnerClass("1");
      this.list.Add(new List<InnerClass>( new InnerClass[]{innerClass} ));
    }

    IEnumerator<List<FalseWarning.InnerClass>> IEnumerable<List<FalseWarning.InnerClass>>.GetEnumerator() { //warning here
      return this.list.GetEnumerator();
    }

    IEnumerator IEnumerable.GetEnumerator() {
      return this.list.GetEnumerator();
    }
  }

  class Program {
    static void Main() {
    }
  }
}


 All   Comments   Work Log   Change History      Sort Order:
Eugene Pasynkov - 01 Jun 07 17:08
See CSharpHighlightingTest.InterfaceMemberNotImplemented22

Ilya Ryzhenkov - 12 Dec 07 22:41
Looks like it has been fixed?