[...-248] Warning is Highlited as error

Hi,

consider the following example:

namespace Demo
{
public abstract class Class1
{
public abstract string Name { get; set; }
}

public abstract class Class2
: Class1
{
public override string Name { get { return ""; } } // <-- Name is
underlined red and gets a red marker in the stripe bar with the msg:
"Abstract Inherited member 'string Namne' is missing set Accessor
implementation.
}

public class Class3
: Class2
{
public override string Name
{
set{} // <-- is underlinde blue, gets a red marker in the stripe
bar; ErrorMsg: 'Name.set': cannot override because 'string Demo.class2.Name'
does not have an overridable set accessor
}
}
}

But the file compiles. Shouldn't these be warnings?

Thomas


1 comment
Comment actions Permalink

Thank you. This will be fixed in 2.0.1

--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Thomas Schreiner" <tsr@conject.com> wrote in message
news:e4ro6t$11p$1@is.intellij.net...

Hi,

>

consider the following example:

>

namespace Demo
{
public abstract class Class1
{
public abstract string Name { get; set; }
}

>

public abstract class Class2
: Class1
{
public override string Name { get { return ""; } } // <-- Name is
underlined red and gets a red marker in the stripe bar with the msg:
"Abstract Inherited member 'string Namne' is missing set Accessor
implementation.
}

>

public class Class3
: Class2
{
public override string Name
{
set{} // <-- is underlinde blue, gets a red marker in the
stripe bar; ErrorMsg: 'Name.set': cannot override because 'string
Demo.class2.Name' does not have an overridable set accessor
}
}
}

>

But the file compiles. Shouldn't these be warnings?

>

Thomas



0

Please sign in to leave a comment.