Accept type baselines (will verify when computed properties are typechecked)
This commit is contained in:
parent
02dc56946e
commit
ddebd02828
11 changed files with 83 additions and 0 deletions
|
@ -0,0 +1,7 @@
|
|||
=== tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName12.ts ===
|
||||
class C {
|
||||
>C : C
|
||||
|
||||
[e]() { }
|
||||
>e : unknown
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
=== tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName17.ts ===
|
||||
var v = { set [e](v) { } }
|
||||
>v : {}
|
||||
>{ set [e](v) { } } : {}
|
||||
>e : unknown
|
||||
>v : any
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
=== tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName2.ts ===
|
||||
var v = { [e]: 1 };
|
||||
>v : {}
|
||||
>{ [e]: 1 } : {}
|
||||
>e : unknown
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
=== tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName24.ts ===
|
||||
class C {
|
||||
>C : C
|
||||
|
||||
set [e](v) { }
|
||||
>e : unknown
|
||||
>v : any
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
=== tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName3.ts ===
|
||||
var v = { [e]() { } };
|
||||
>v : {}
|
||||
>{ [e]() { } } : {}
|
||||
>e : unknown
|
||||
>[e]() { } : () => void
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
=== tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName37.ts ===
|
||||
var v = {
|
||||
>v : {}
|
||||
>{ [public]: 0} : {}
|
||||
|
||||
[public]: 0
|
||||
>public : unknown
|
||||
|
||||
};
|
|
@ -0,0 +1,7 @@
|
|||
=== tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName38.ts ===
|
||||
class C {
|
||||
>C : C
|
||||
|
||||
[public]() { }
|
||||
>public : unknown
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
=== tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName4.ts ===
|
||||
var v = { get [e]() { } };
|
||||
>v : {}
|
||||
>{ get [e]() { } } : {}
|
||||
>e : unknown
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
=== tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName40.ts ===
|
||||
class C {
|
||||
>C : C
|
||||
|
||||
[a ? "" : ""]() {}
|
||||
>a ? "" : "" : string
|
||||
>a : unknown
|
||||
}
|
|
@ -0,0 +1,9 @@
|
|||
=== tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName41.ts ===
|
||||
var v = {
|
||||
>v : {}
|
||||
>{ [0 in []]: true} : {}
|
||||
|
||||
[0 in []]: true
|
||||
>0 in [] : boolean
|
||||
>[] : undefined[]
|
||||
}
|
|
@ -0,0 +1,9 @@
|
|||
=== tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName6.ts ===
|
||||
var v = { [e]: 1, [e + e]: 2 };
|
||||
>v : {}
|
||||
>{ [e]: 1, [e + e]: 2 } : {}
|
||||
>e : unknown
|
||||
>e + e : any
|
||||
>e : unknown
|
||||
>e : unknown
|
||||
|
Loading…
Reference in a new issue