Wrong Ambiguous Reference in R# 545

Hi JetBrainers,

following a Examples Codes which shows the error, the Code compile and works
as expected. But R# shows an Error.

using System;

namespace ClassLibrary2
public delegate object Creator(Type type);

public class Class1
public static object CreateObject(Type type)
return CreateObject(type, CreateObject);

public static object CreateObject(Type type, Creator creator, params
object[] defaultParams)
if (creator == CreateObject) // R# Marks this as an Error
Ambiguous Reference
return null;

1 comment
Comment actions Permalink


We appreciate your feedback.

The corresponding JIRA request has been created, and you are welcome to monitor
its status at http://www.jetbrains.net/jira/browse/RSRP-51853.

Best regards,
- Development Team.


Please sign in to leave a comment.