Ryan Cavanaugh
Ryan Cavanaugh
`isolatedModules` means that a non-resolving transpiler can correctly emit any file in the project. Arguably, a non-resolving transpiler *can* correctly emit `index.ts`: ```ts import { Foo } from "./foo"; export...
`C` is an error, so its correct emit is not guaranteed. Correct transpilation (in the presence of no errors) a motivating scenario behind the breaking changes we made in #50528
TL;DR from #56164. Under `isolatedModules` *only*, the following should be errors: * When an enum initializer expression that isn't a string literal has a string type * When an enum...
> Is this what was meant by "work" Yes, though under the agreed-on rules, `C` would be an error
Approved. This will probably be a hairy change so we'll take a first stab at it unless someone wants to jump in. We don't *think* there will be breaking changes...
I think instead of modifying the declaration emitter (since there's not really an otherwise-legal thing to emit here), we can change the parse rule on this line to allow reserved...
In ES3, `x.delete` (or other reserved words) was illegal, so there's some logic around that which is incorrectly being applied here
I'd agree something weird appears to be happening here. A demonstration is to slightly tweak these definitions ```ts const b = (fn: null | ((value: T) => T), v: T):...
@rbuckton @weswigham thoughts?
> In fact, this feature here from the very beginning. @RReverser I'm very confused by this statement; what do you mean by it? It was very clearly added to the...