You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
using System;
#pragma warning disable 436namespaceSystem{publicclassObsoleteAttribute:Attribute{publicint[] P1 {get;set;}}}classC1{[Obsolete( P1 =new[]{0})]voidM1(){}voidM2(){
M1();// expect an obsolete diagnostic here but get none}}
Expected Behavior:
Obsolete diagnostic is issued for call to M1().
Actual Behavior:
No diagnostic is issued.
If the attribute is modified to not pass an argument for P1, the diagnostic is issued on usage.
If the attribute is modified to pass a null argument for P1, the diagnostic is issued on usage.
If the obsoleted member is compiled and referenced from metadata, the diagnostic is issued on usage.
The text was updated successfully, but these errors were encountered:
Version Used: 441c154
Steps to Reproduce:
Expected Behavior:
Obsolete diagnostic is issued for call to
M1()
.Actual Behavior:
No diagnostic is issued.
P1
, the diagnostic is issued on usage.null
argument forP1
, the diagnostic is issued on usage.The text was updated successfully, but these errors were encountered: