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
Update TypeHelper.IsLiteralType to avoid catching LanguageConstants.Object (#8952)
* Update TypeHelper.IsLiteralType to avoid catching LanguageConstants.Object
* Add explanatory comment to object type check in TypeHelper.IsLiteralType
("BCP295",DiagnosticLevel.Error,"The 'allowed' decorator may not be used on targets of a union or literal type. The allowed values for this parameter or type definition will be derived from the union or literal type automatically."),
134
+
("no-unused-params",DiagnosticLevel.Warning,"Parameter \"trueParam\" is declared but never used."),
135
+
("BCP295",DiagnosticLevel.Error,"The 'allowed' decorator may not be used on targets of a union or literal type. The allowed values for this parameter or type definition will be derived from the union or literal type automatically."),
136
+
("no-unused-params",DiagnosticLevel.Warning,"Parameter \"falseParam\" is declared but never used."),
137
+
("BCP295",DiagnosticLevel.Error,"The 'allowed' decorator may not be used on targets of a union or literal type. The allowed values for this parameter or type definition will be derived from the union or literal type automatically."),
138
+
("no-unused-params",DiagnosticLevel.Warning,"Parameter \"oneParam\" is declared but never used."),
139
+
("BCP295",DiagnosticLevel.Error,"The 'allowed' decorator may not be used on targets of a union or literal type. The allowed values for this parameter or type definition will be derived from the union or literal type automatically."),
140
+
("no-unused-params",DiagnosticLevel.Warning,"Parameter \"negativeOneParam\" is declared but never used."),
141
+
("BCP295",DiagnosticLevel.Error,"The 'allowed' decorator may not be used on targets of a union or literal type. The allowed values for this parameter or type definition will be derived from the union or literal type automatically."),
142
+
("no-unused-params",DiagnosticLevel.Warning,"Parameter \"fizzBuzzParam\" is declared but never used."),
143
+
("BCP295",DiagnosticLevel.Error,"The 'allowed' decorator may not be used on targets of a union or literal type. The allowed values for this parameter or type definition will be derived from the union or literal type automatically."),
144
+
("no-unused-params",DiagnosticLevel.Warning,"Parameter \"fizzParam\" is declared but never used."),
145
+
("BCP295",DiagnosticLevel.Error,"The 'allowed' decorator may not be used on targets of a union or literal type. The allowed values for this parameter or type definition will be derived from the union or literal type automatically."),
146
+
("no-unused-params",DiagnosticLevel.Warning,"Parameter \"fizzBuzzPopParam\" is declared but never used."),
0 commit comments