-
Notifications
You must be signed in to change notification settings - Fork 92
Open
Labels
meeting: discussThis issue should be discussed at the next TC49-TG2 meetingThis issue should be discussed at the next TC49-TG2 meeting
Milestone
Description
This is with reference to conformance.md.
Originally posted by @KalleOlaviNiemitalo in #1486 (comment)
using static A;
namespace B {
using static System.Int32;
class C {
static int Main() => MaxValue;
}
}
class A {
public const int MaxValue = 42;
}Now if the implementation extends System.Int32 with a
public const int MaxValuemember, then Main() will return that rather than A.MaxValue, thus changing the behaviour. So the rule seems to pretty much disallow providing additional static members. Or is this kind of program not strictly conforming?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
meeting: discussThis issue should be discussed at the next TC49-TG2 meetingThis issue should be discussed at the next TC49-TG2 meeting