-
Notifications
You must be signed in to change notification settings - Fork 880
Compiler allows us to box a byreflike type, leading to runtime crash #7114
Copy link
Copy link
Open
Labels
Area-Compiler-CheckingType checking, attributes and all aspects of logic checkingType checking, attributes and all aspects of logic checkingArea-Compiler-Checking-Byrefbyref, inref, outref, byref-like types, NativePtr, function pointers, struct semanticsbyref, inref, outref, byref-like types, NativePtr, function pointers, struct semanticsBugImpact-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 checkingArea-Compiler-Checking-Byrefbyref, inref, outref, byref-like types, NativePtr, function pointers, struct semanticsbyref, inref, outref, byref-like types, NativePtr, function pointers, struct semanticsBugImpact-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 fieldsNew
Consider this program:
Result:
Expected:
GetType()in the completion list (ref: IntelliSense suggests GetType on a span, but it won't compile roslyn#35178)