Project
ReSharper
Priority
Critical
Type
Bug
Fix versions
2.5
State
Fixed
Assignee
Dmitry Lomov
Subsystem
PSI
Affected versions
No Affected versions
Fixed in build
No Fixed in build
  • Created by   Wiebe Tijsma
    5 years ago (06 Aug 2006 20:41)
  • Updated by   Wiebe Tijsma
    5 years ago (25 Nov 2006 18:15)
  • Jira: RSRP-27558
    (history, comments)
 
RSRP-27558 [255] internal member confused with namespace: false error
0
Issue is visible to: All Users
  The issue is visible to the selected user group only
I have a namespace in a project that gets confused by R# with an internal member with the same name in the declaring form:

namespace MyApp.Properties {
public static class Settings {
public static string Default = "MyValue";
}
}

namespace MyApp {
using System;

public class Form1 : System.Windows.Forms.Form
{
MyMethod(){
// R# indicates error but compiles
Console.WriteLine(Properties.Settings.Default);
}
}
}

please see the attached solution for an example.

Issue was closed
Comments (0)
 
History
 
Linked Issues (?)
 
TeamCity Changes (0)
 
Issue has no comments