Accepted baselines.
This commit is contained in:
parent
14c2bcf73a
commit
f786c5c187
6 changed files with 56 additions and 0 deletions
|
@ -0,0 +1,12 @@
|
|||
//// [duplicatePropertiesInTypeAssertions01.ts]
|
||||
|
||||
let x = <{a: number; a: number}>{};
|
||||
|
||||
//// [duplicatePropertiesInTypeAssertions01.js]
|
||||
var x = {};
|
||||
|
||||
|
||||
//// [duplicatePropertiesInTypeAssertions01.d.ts]
|
||||
declare let x: {
|
||||
a: number;
|
||||
};
|
|
@ -0,0 +1,7 @@
|
|||
=== tests/cases/conformance/expressions/typeAssertions/duplicatePropertiesInTypeAssertions01.ts ===
|
||||
|
||||
let x = <{a: number; a: number}>{};
|
||||
>x : Symbol(x, Decl(duplicatePropertiesInTypeAssertions01.ts, 1, 3))
|
||||
>a : Symbol(a, Decl(duplicatePropertiesInTypeAssertions01.ts, 1, 10), Decl(duplicatePropertiesInTypeAssertions01.ts, 1, 20))
|
||||
>a : Symbol(a, Decl(duplicatePropertiesInTypeAssertions01.ts, 1, 10), Decl(duplicatePropertiesInTypeAssertions01.ts, 1, 20))
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
=== tests/cases/conformance/expressions/typeAssertions/duplicatePropertiesInTypeAssertions01.ts ===
|
||||
|
||||
let x = <{a: number; a: number}>{};
|
||||
>x : { a: number; }
|
||||
><{a: number; a: number}>{} : { a: number; }
|
||||
>a : number
|
||||
>a : number
|
||||
>{} : {}
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
//// [duplicatePropertiesInTypeAssertions02.ts]
|
||||
|
||||
let x = {} as {a: number; a: number};
|
||||
|
||||
//// [duplicatePropertiesInTypeAssertions02.js]
|
||||
var x = {};
|
||||
|
||||
|
||||
//// [duplicatePropertiesInTypeAssertions02.d.ts]
|
||||
declare let x: {
|
||||
a: number;
|
||||
};
|
|
@ -0,0 +1,7 @@
|
|||
=== tests/cases/conformance/expressions/typeAssertions/duplicatePropertiesInTypeAssertions02.ts ===
|
||||
|
||||
let x = {} as {a: number; a: number};
|
||||
>x : Symbol(x, Decl(duplicatePropertiesInTypeAssertions02.ts, 1, 3))
|
||||
>a : Symbol(a, Decl(duplicatePropertiesInTypeAssertions02.ts, 1, 15), Decl(duplicatePropertiesInTypeAssertions02.ts, 1, 25))
|
||||
>a : Symbol(a, Decl(duplicatePropertiesInTypeAssertions02.ts, 1, 15), Decl(duplicatePropertiesInTypeAssertions02.ts, 1, 25))
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
=== tests/cases/conformance/expressions/typeAssertions/duplicatePropertiesInTypeAssertions02.ts ===
|
||||
|
||||
let x = {} as {a: number; a: number};
|
||||
>x : { a: number; }
|
||||
>{} as {a: number; a: number} : { a: number; }
|
||||
>{} : {}
|
||||
>a : number
|
||||
>a : number
|
||||
|
Loading…
Reference in a new issue