diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index ff2360d57a0..2e7c89f235a 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -14630,7 +14630,7 @@ namespace ts { } function createSymbolWithType(source: Symbol, type: Type | undefined) { - const symbol = createSymbol(source.flags, source.escapedName); + const symbol = createSymbol(source.flags, source.escapedName, getCheckFlags(source) & CheckFlags.Readonly); symbol.declarations = source.declarations; symbol.parent = source.parent; symbol.type = type;