-
Notifications
You must be signed in to change notification settings - Fork 879
Enum type is lost when used in attribute #995
Copy link
Copy link
Labels
Area-Compiler-CheckingType checking, attributes and all aspects of logic checkingType checking, attributes and all aspects of logic checkingBugImpact-Medium(Internal MS Team use only) Describes an issue with moderate impact on existing code.(Internal MS Team use only) Describes an issue with moderate impact on existing code.
Milestone
Description
Activity
Metadata
Metadata
Assignees
Labels
Area-Compiler-CheckingType checking, attributes and all aspects of logic checkingType checking, attributes and all aspects of logic checkingBugImpact-Medium(Internal MS Team use only) Describes an issue with moderate impact on existing code.(Internal MS Team use only) Describes an issue with moderate impact on existing code.
Type
Projects
- StatusShow more project fieldsIn Progress
Description
Enum type is lost (casted to int32) when used in attribute named argument of type
obj.http://stackoverflow.com/questions/35732830/how-to-preserve-value-type-in-enum
Repro Steps
Create attribute with named argument of type
obj. Add that attribute and assign enum value to named argument.Expected
testfunction should return"B". In IL value should be stored as enum.Actual
testfunction returns2. In IL value is stored as int32 - enum type is lostVersion:
Microsoft (R) F# Compiler version 14.0.23413.0