Syntax error for computed properties on method overloads

This commit is contained in:
Jason Freeman
2014-11-18 10:53:22 -08:00
parent 0e864143de
commit 98eda2bf5c
3 changed files with 9 additions and 1 deletions

View File

@@ -1,9 +1,12 @@
tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName11.ts(2,4): error TS1166: Computed property names are not allowed in method overloads.
tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName11.ts(2,4): error TS2391: Function implementation is missing or not immediately following the declaration.
==== tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName11.ts (1 errors) ====
==== tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName11.ts (2 errors) ====
class C {
[e]();
~~~
!!! error TS1166: Computed property names are not allowed in method overloads.
~~~
!!! error TS2391: Function implementation is missing or not immediately following the declaration.
}