Skip to content

Commit a81b583

Browse files
Merge pull request #136 from bloomberg/isolated-declarations-remove-stale-reasons
Remove stale diff reasons.
2 parents 571e43f + e7ad116 commit a81b583

File tree

167 files changed

+37
-200
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

167 files changed

+37
-200
lines changed

src/harness/harnessIO.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1062,10 +1062,6 @@ export namespace Compiler {
10621062
fullDiff += Diff.createTwoFilesPatch("TSC", "DTE", tscContent, dteContent, "declarations", "declarations");
10631063

10641064
Baseline.runBaseline(type + "/" + baselinePath.replace(/\.tsx?/, `.d.ts.map.diff`), fullDiff);
1065-
1066-
if (reason === undefined) {
1067-
throw new Error("The test is not equivalent between TSC and DTE. Please provide an isolatedDeclarationDiffReason/isolatedDeclarationFixedDiffReason setting in the test if this is intentional");
1068-
}
10691065
}
10701066

10711067
export function doDeclarationDiffBaseline(
@@ -1089,10 +1085,6 @@ export namespace Compiler {
10891085
fullDiff += Diff.createTwoFilesPatch("TSC", "DTE", tscContent, dteContent, "declarations", "declarations");
10901086

10911087
Baseline.runBaseline(type + "/" + baselinePath.replace(/\.tsx?/, `.d.ts.diff`), fullDiff);
1092-
1093-
if (reason === undefined) {
1094-
throw new Error("The test is not equivalent between TSC and DTE. Please provide an isolatedDeclarationDiffReason/isolatedDeclarationFixedDiffReason setting in the test if this is intentional");
1095-
}
10961088
}
10971089
function sourceContent(tsSources: readonly TestFile[]) {
10981090
let code = "";

src/testRunner/compilerRunner.ts

Lines changed: 35 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,8 @@ export class CompilerBaselineRunner extends RunnerBase {
127127
});
128128
it(`Correct dte emit for ${fileName}`, () => isolatedTest?.verifyDteOutput());
129129
it(`Correct tsc emit for ${fileName}`, () => isolatedTest?.verifyTscOutput());
130-
it(`Correct dte/tsc diff ${fileName}`, () => isolatedTest?.verifyDiff());
130+
it(`Correct dte/tsc diff for ${fileName}`, () => isolatedTest?.verifyDiff());
131+
it(`Correct diff reason for ${fileName}`, () => isolatedTest?.verifyDiffReason());
131132

132133
after(() => {
133134
isolatedTest = undefined!;
@@ -145,12 +146,13 @@ export class CompilerBaselineRunner extends RunnerBase {
145146
this.skip();
146147
}
147148
});
148-
it(`Correct dte emit for ${fileName}`, () => fixedIsolatedTest?.verifyDteOutput());
149-
it(`Correct tsc emit for ${fileName}`, () => fixedIsolatedTest?.verifyTscOutput());
150-
it(`Correct dte/tsc diff ${fileName}`, () => fixedIsolatedTest?.verifyDiff());
151-
it(`Correct dte map emit for ${fileName}`, () => fixedIsolatedTest?.verifyDteMapOutput());
152-
it(`Correct tsc map emit for ${fileName}`, () => fixedIsolatedTest?.verifyTscMapOutput());
153-
it(`Correct dte/tsc map diff ${fileName}`, () => fixedIsolatedTest?.verifyMapDiff());
149+
it(`Correct dte emit for fixed ${fileName}`, () => fixedIsolatedTest?.verifyDteOutput());
150+
it(`Correct tsc emit for fixed ${fileName}`, () => fixedIsolatedTest?.verifyTscOutput());
151+
it(`Correct dte/tsc diff for fixed ${fileName}`, () => fixedIsolatedTest?.verifyDiff());
152+
it(`Correct dte map emit for fixed ${fileName}`, () => fixedIsolatedTest?.verifyDteMapOutput());
153+
it(`Correct tsc map emit for fixed ${fileName}`, () => fixedIsolatedTest?.verifyTscMapOutput());
154+
it(`Correct dte/tsc map diff for fixed ${fileName}`, () => fixedIsolatedTest?.verifyMapDiff());
155+
it(`Correct diff reason for fixed ${fileName}`, () => fixedIsolatedTest?.verifyDiffReason());
154156

155157
after(() => {
156158
fixedIsolatedTest = undefined!;
@@ -480,13 +482,15 @@ class IsolatedDeclarationTest extends CompilerTestBase {
480482
protected isDiagnosticEquivalent: boolean;
481483
protected isOutputMapEquivalent: boolean;
482484

483-
static transformEnvironment(compilerEnvironment: CompilerTestEnvironment): CompilerTestEnvironment | undefined {
485+
static transformEnvironment(compilerEnvironment: CompilerTestEnvironment, shouldNotExclude = !!compilerEnvironment.testCaseContent.settings.isolatedDeclarationDiffReason): CompilerTestEnvironment | undefined {
484486
const options = compilerEnvironment.compilerOptions;
485-
// Exclude tests some tests
486-
// - those explicitly not opting into isolatedDeclarations
487-
// - those that do not usually emit output anyway
488-
if (options.isolatedDeclarations === false || options.noEmit || options.noTypesAndSymbols || !options.declaration) {
489-
return undefined;
487+
if (!shouldNotExclude) {
488+
// Exclude tests some tests
489+
// - those explicitly not opting into isolatedDeclarations
490+
// - those that do not usually emit output anyway
491+
if (options.isolatedDeclarations === false || options.noEmit || options.noTypesAndSymbols || !options.declaration) {
492+
return undefined;
493+
}
490494
}
491495
const clonedOptions: ts.CompilerOptions & Compiler.HarnessOptions = ts.cloneCompilerOptions(compilerEnvironment.compilerOptions);
492496
if (clonedOptions.isolatedDeclarations === undefined) {
@@ -658,11 +662,16 @@ class IsolatedDeclarationTest extends CompilerTestBase {
658662
);
659663
}
660664

665+
verifyDiffReason() {
666+
if (this.isOutputMapEquivalent && this.isOutputEquivalent && this.isDiagnosticEquivalent) {
667+
ts.Debug.assert(this.diffReason === undefined, "Should not have a diff reason if everything is equivalent");
668+
}
669+
else {
670+
ts.Debug.assert(this.diffReason !== undefined, "Should have a reason if everything is not equivalent");
671+
}
672+
}
661673
verifyDiff() {
662674
if (this.isOutputEquivalent && this.isDiagnosticEquivalent) {
663-
if (this.isOutputMapEquivalent) {
664-
ts.Debug.assert(this.diffReason === undefined, "Should not have a diff reason if everything is equivalent");
665-
}
666675
return;
667676
}
668677
Compiler.doDeclarationDiffBaseline(
@@ -697,16 +706,18 @@ class IsolatedDeclarationTest extends CompilerTestBase {
697706
}
698707

699708
class FixedIsolatedDeclarationTest extends IsolatedDeclarationTest {
700-
static fixTestProject(compilerEnvironment: CompilerTestEnvironment): CompilerTestEnvironment | undefined {
701-
// Exclude test that disable types and symbols (good proxy for very complex test)
702-
if (compilerEnvironment.compilerOptions.noTypesAndSymbols) {
703-
return undefined;
704-
}
705-
if (!compilerEnvironment.compilerOptions.declaration) {
706-
return undefined;
709+
static fixTestProject(compilerEnvironment: CompilerTestEnvironment, shouldNotExclude = !!compilerEnvironment.testCaseContent.settings.isolatedDeclarationFixedDiffReason): CompilerTestEnvironment | undefined {
710+
if (!shouldNotExclude) {
711+
// Exclude test that disable types and symbols (good proxy for very complex test)
712+
if (compilerEnvironment.compilerOptions.noTypesAndSymbols) {
713+
return undefined;
714+
}
715+
if (!compilerEnvironment.compilerOptions.declaration) {
716+
return undefined;
717+
}
707718
}
708719

709-
const env = IsolatedDeclarationTest.transformEnvironment(compilerEnvironment);
720+
const env = IsolatedDeclarationTest.transformEnvironment(compilerEnvironment, shouldNotExclude);
710721
if (!env) {
711722
return undefined;
712723
}

tests/cases/compiler/arrayFind.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// @lib: es2015
2-
// @isolatedDeclarationDiffReason: TS normalizes types
32

43
// test fix for #18112, type guard predicates should narrow returned element
54
function isNumber(x: any): x is number {

tests/cases/compiler/bigintIndex.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// @target: es2020
2-
// @isolatedDeclarationDiffReason: Invalid computed property can only be detected by TSC
32

43
// @filename: a.ts
54
interface BigIntIndex<E> {

tests/cases/compiler/booleanFilterAnyArray.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// @isolatedDeclarationDiffReason: TS normalizes types
21
interface Bullean { }
32
interface BulleanConstructor {
43
new(v1?: any): Bullean;

tests/cases/compiler/capturedParametersInInitializers1.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// @target: es6
2-
// @isolatedDeclarationDiffReason: TS normalizes types
32
// ok - usage is deferred
43
function foo1(y = class {c = x}, x = 1) {
54
new y().c;

tests/cases/compiler/circularObjectLiteralAccessors.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// @isolatedDeclarationDiffReason: TS merges accessors with the same type. DTE can only merge if one type is specified.
21
// @target: es5
32

43
// Repro from #6000

tests/cases/compiler/complicatedPrivacy.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// @target: es5
2-
// @isolatedDeclarationDiffReason: Invalid computed property can only be detected by TSC
32

43
module m1 {
54
export module m2 {

tests/cases/compiler/constEnumErrors.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// @lib: es5
2-
// @isolatedDeclarationDiffReason: TSC detects forward ref which is not allowed and so enum value is undefined, which is also the way we detect isolated declaration errors.
32
const enum E {
43
A
54
}

tests/cases/compiler/contextualTyping.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// @sourcemap: true
2-
// @isolatedDeclarationDiffReason: TS normalizes types
32
// DEFAULT INTERFACES
43
interface IFoo {
54
n: number;
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
// @isolatedDeclarationDiffReason: TS normalizes types
21
var foo = <{ (): number; }> function(a) { return a };
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
// @isolatedDeclarationDiffReason: TS normalizes types
21
var foo = <{ (): number; }> function() { return "err"; };

tests/cases/compiler/decoratorMetadataWithImportDeclarationNameCollision7.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// @emitdecoratormetadata: true
44
// @target: es5
55
// @module: commonjs
6-
// @isolatedDeclarationDiffReason: TSC removes import that is not used in a semantically valid way. DTE can't know about this.
76
// @filename: db.ts
87
export default class db {
98
public doSomething() {

tests/cases/compiler/decoratorsOnComputedProperties.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// @target: es6
22
// @experimentalDecorators: true
3-
// @isolatedDeclarationDiffReason: Invalid computed property can only be detected by TSC
43
function x(o: object, k: PropertyKey) { }
54
let i = 0;
65
function foo(): string { return ++i + ""; }

tests/cases/compiler/duplicateObjectLiteralProperty_computedName1.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// @isolatedDeclarationDiffReason: DTE preserves different duplicate identifier
21
const t1 = {
32
1: 1,
43
[1]: 0 // duplicate

tests/cases/compiler/duplicateObjectLiteralProperty_computedName2.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// @isolatedDeclarationDiffReason: Computed property are not resolved
21
const n = 1;
32
const s = "s";
43
enum E1 { A = "ENUM_KEY" }

tests/cases/compiler/duplicateVarsAcrossFileBoundaries.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// @isolatedDeclarationDiffReason: TSC Resolves variable types across files.
21
// @Filename: duplicateVarsAcrossFileBoundaries_0.ts
32
var x = 3;
43
var y = "";

tests/cases/compiler/escapedIdentifiers.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// @allowUnusedLabels: true
22
// @allowUnreachableCode: true
3-
// @isolatedDeclarationDiffReason: DTE resolves unicode escapes in some cases.
43

54
/*
65
0 .. \u0030

tests/cases/compiler/forwardRefInEnum.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// @isolatedDeclarationDiffReason: TSC detects forward ref which is not allowed and so enum value is undefined, which is also the way we detect isolated declaration errors.
21
enum E1 {
32
// illegal case
43
// forward reference to the element of the same enum

tests/cases/compiler/gettersAndSettersErrors.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// @isolatedDeclarationDiffReason: Duplicate identifiers in class result in different types
21
class C {
32
public get Foo() { return "foo";} // ok
43
public set Foo(foo:string) {} // ok

tests/cases/compiler/inKeywordAndIntersection.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// @strict: true
2-
// @isolatedDeclarationDiffReason: TS normalizes types
32

43
class A { a = 0 }
54
class B { b = 0 }

tests/cases/compiler/indexSignatureMustHaveTypeAnnotation.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// @isolatedDeclarationDiffReason: Invalid computed property can only be detected by TSC
21
interface I {
32
// Used to be indexer, now it is a computed property
43
[x]: string;

tests/cases/compiler/indexWithoutParamType2.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// @isolatedDeclarationDiffReason: Invalid computed property can only be detected by TSC
21
class C {
32
// Used to be indexer, now it is a computed property
43
[x]: string

tests/cases/compiler/intTypeCheck.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// @isolatedDeclarationDiffReason: Invalid computed property can only be detected by TSC
21
interface i1 {
32
//Property Signatures
43
p;

tests/cases/compiler/modularizeLibrary_ErrorFromUsingES6FeaturesWithOnlyES5Lib.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
// @isolatedDeclarationDiffReason: Invalid computed property can only be detected by TSC
2-
// @lib: es5
1+
// @lib: es5
32
// @target: es6
43

54
// All will be error from using ES6 features but only include ES5 library

tests/cases/compiler/moduleResolutionWithSuffixes_one_externalTSModule.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// moduleSuffixes has one entry and there's a matching package with TS files.
2-
// @isolatedDeclarationDiffReason: checker.typeToTypeNode deliberately fails on types that originate from node_modules
32
// @fullEmitPaths: true
43
// @filename: /tsconfig.json
54
{

tests/cases/compiler/objectLiteralEnumPropertyNames.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// @isolatedDeclarationDiffReason: Computed property are not resolved
21
// Fixes #16887
32
enum Strs {
43
A = 'a',

tests/cases/compiler/overloadsWithComputedNames.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// @isolatedDeclarationDiffReason: Invalid computed property can only be detected by TSC
21
// https://github.com/microsoft/TypeScript/issues/52329
32
class Person {
43
["B"](a: number): string;

tests/cases/compiler/parseInvalidNonNullableTypes.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// @strict: true
2-
// @isolatedDeclarationDiffReason: Syntactically invalid.
32

43
function f1(a: string): a is string! {
54
return true;

tests/cases/compiler/parseInvalidNullableTypes.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// @strict: true
2-
// @isolatedDeclarationDiffReason: Syntactically invalid.
32

43
function f1(a: string): a is ?string {
54
return true;

tests/cases/compiler/parseTypes.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// @isolatedDeclarationDiffReason: TS normalizes types
21

32
var x = <() => number>null;
43
var y = <{(): number; }>null;

tests/cases/compiler/propertyAssignment.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// @isolatedDeclarationDiffReason: Syntactically invalid.
21

32

43
var foo1: { new ():any; }

tests/cases/compiler/typeUsedAsTypeLiteralIndex.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// @target: esnext
2-
// @isolatedDeclarationDiffReason: Invalid computed property can only be detected by TSC
32

43
type K = number | string;
54
type T = {

tests/cases/conformance/Symbols/ES5SymbolProperty1.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//@target: ES5
2-
//@isolatedDeclarationDiffReason: Invalid computed property can only be detected by TSC
32
interface SymbolConstructor {
43
foo: string;
54
}

tests/cases/conformance/Symbols/ES5SymbolProperty2.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// @isolatedDeclarationDiffReason: Invalid computed property can only be detected by TSC
21
//@target: ES5
32
module M {
43
var Symbol: any;

tests/cases/conformance/Symbols/ES5SymbolProperty3.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// @isolatedDeclarationDiffReason: Invalid computed property can only be detected by TSC
21
//@target: ES5
32
var Symbol: any;
43

tests/cases/conformance/Symbols/ES5SymbolProperty4.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// @isolatedDeclarationDiffReason: Invalid computed property can only be detected by TSC
21
//@target: ES5
32
var Symbol: { iterator: string };
43

tests/cases/conformance/Symbols/ES5SymbolProperty5.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// @isolatedDeclarationDiffReason: Invalid computed property can only be detected by TSC
21
//@target: ES5
32
var Symbol: { iterator: symbol };
43

tests/cases/conformance/Symbols/ES5SymbolProperty6.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// @isolatedDeclarationDiffReason: Invalid computed property can only be detected by TSC
21
//@target: ES5
32
class C {
43
[Symbol.iterator]() { }

tests/cases/conformance/Symbols/ES5SymbolProperty7.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// @isolatedDeclarationDiffReason: Invalid computed property can only be detected by TSC
21
//@target: ES5
32
var Symbol: { iterator: any };
43

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
// @target: es2017
22
// @noEmitHelpers: true
3-
// @isolatedDeclarationDiffReason: Invalid computed property can only be detected by TSC
43
var v = { [await]: foo }
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// @target: ES5
22
// @lib: es5,es2015.promise
33
// @noEmitHelpers: true
4-
// @isolatedDeclarationDiffReason: Invalid computed property can only be detected by TSC
54
var v = { [await]: foo }
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
// @target: ES6
22
// @noEmitHelpers: true
3-
// @isolatedDeclarationDiffReason: Invalid computed property can only be detected by TSC
43
var v = { [await]: foo }

tests/cases/conformance/classes/members/inheritanceAndOverriding/derivedClassOverridesProtectedMembers.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// @isolatedDeclarationDiffReason: TS normalizes types
21
// @target: ES5
32

43
var x: { foo: string; }

tests/cases/conformance/classes/members/inheritanceAndOverriding/derivedClassOverridesProtectedMembers2.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// @isolatedDeclarationDiffReason: TS normalizes types
21
// @target: ES5
32
var x: { foo: string; }
43
var y: { foo: string; bar: string; }

tests/cases/conformance/classes/members/inheritanceAndOverriding/derivedClassOverridesProtectedMembers3.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// @isolatedDeclarationDiffReason: TS normalizes types
21
// @target: ES5
32

43
var x: { foo: string; }

tests/cases/conformance/classes/members/inheritanceAndOverriding/derivedClassOverridesPublicMembers.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// @isolatedDeclarationDiffReason: TS normalizes types
21
var x: { foo: string; }
32
var y: { foo: string; bar: string; }
43

tests/cases/conformance/classes/propertyMemberDeclarations/staticPropertyNameConflicts.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// @target: es5
22
// @useDefineForClassFields: true,false
3-
// @isolatedDeclarationDiffReason: Invalid computed property can only be detected by TSC
43

54
const FunctionPropertyNames = {
65
name: 'name',

tests/cases/conformance/es6/Symbols/symbolProperty1.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//@target: ES6
2-
//@isolatedDeclarationDiffReason: Invalid computed property can only be detected by TSC
32
var s: symbol;
43
var x = {
54
[s]: 0,

tests/cases/conformance/es6/Symbols/symbolProperty2.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//@target: ES6
2-
//@isolatedDeclarationDiffReason: Invalid computed property can only be detected by TSC
32
var s = Symbol();
43
var x = {
54
[s]: 0,

tests/cases/conformance/es6/Symbols/symbolProperty3.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//@target: ES6
2-
//@isolatedDeclarationDiffReason: Invalid computed property can only be detected by TSC
32
var s = Symbol;
43
var x = {
54
[s]: 0,

tests/cases/conformance/es6/Symbols/symbolProperty52.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//@target: ES6
2-
//@isolatedDeclarationDiffReason: Invalid computed property can only be detected by TSC
32
var obj = {
43
[Symbol.nonsense]: 0
54
};

0 commit comments

Comments
 (0)