Skip to content

Some errors are not reported if any of previous files contain errors #16708

@auduchinok

Description

@auduchinok

Consider a project consisting of two files:

module AbstractBaseClass.File1

a
module AbstractBaseClass.File2

type AbstractBaseClass() =abstract P: int

There's an error expected for the type declaration:

Screenshot 2024-02-14 at 12 26 10

However, it's missing because of the undefined a error in the previous file. Commenting a out fixes the issue.

It seems it's a relatively recent regression, as I don't recall seeing this behavior previously.

Metadata

Metadata

Assignees

Labels

Area-Compiler-ServiceVarious compiler service issues which do not belong to other labels/areas.BugImpact-Medium(Internal MS Team use only) Describes an issue with moderate impact on existing code.Regression

Type

No type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions