-
Notifications
You must be signed in to change notification settings - Fork 854
Open
Labels
AI-thinks-issue-fixedArea-Compiler-CheckingType checking, attributes and all aspects of logic checkingType checking, attributes and all aspects of logic checkingArea-Compiler-Checking-AccessibilityVisibility checks: internal, private, protected, InternalsVisibleToVisibility checks: internal, private, protected, InternalsVisibleToBugImpact-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
B..ctor signature should report an error about a use of an internal type in a public member:
module WrongAccessibility.Library
type internal A = class end
type B =
new: a: A -> BA library containing such a signature is successfully built, and there's a runtime exception when trying to use the constructor of B.
The bug leads to exception when trying to use ILFieldDef:
fsharp/src/fsharp/absil/il.fsi
Line 1090 in 6b1af12
| new: name: string * fieldType: ILType * attributes: FieldAttributes * data: byte[] option * |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
AI-thinks-issue-fixedArea-Compiler-CheckingType checking, attributes and all aspects of logic checkingType checking, attributes and all aspects of logic checkingArea-Compiler-Checking-AccessibilityVisibility checks: internal, private, protected, InternalsVisibleToVisibility checks: internal, private, protected, InternalsVisibleToBugImpact-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
Status
New