Skip to content

"All declarations must have identical modifiers" error only changed in one place with --watch #26389

@ghost

Description

TypeScript Version: 3.1.0-dev.20180810

Search Terms:

Code

a.ts:

interface Document {
	fullscreen: boolean;
}

tsconfig.json: {}

Run tsc --watch. See errors in a.ts and lib.dom.d.ts since fullscreen must be readonly.
Change a.ts to say readonly fullscreen: boolean;.

Expected behavior:

No error.

Actual behavior:

Still an error in lib.dom.d.ts.

Error goes away when restarting tsc --watch.

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptFixedA PR has been merged for this issue

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions