Conflicts: src/compiler/emitter.ts tests/baselines/reference/computedPropertyNames12_ES5.errors.txt tests/baselines/reference/computedPropertyNames14_ES5.errors.txt tests/baselines/reference/computedPropertyNames15_ES5.errors.txt tests/baselines/reference/computedPropertyNames17_ES5.errors.txt tests/baselines/reference/computedPropertyNames32_ES5.errors.txt tests/baselines/reference/computedPropertyNames35_ES5.errors.txt tests/baselines/reference/computedPropertyNames3_ES5.errors.txt tests/baselines/reference/computedPropertyNames42_ES5.errors.txt tests/baselines/reference/computedPropertyNames5_ES5.errors.txt tests/baselines/reference/computedPropertyNames6_ES5.errors.txt tests/baselines/reference/computedPropertyNames8_ES5.errors.txt tests/baselines/reference/computedPropertyNames9_ES5.errors.txt tests/baselines/reference/computedPropertyNamesDeclarationEmit3_ES5.errors.txt tests/baselines/reference/computedPropertyNamesDeclarationEmit4_ES5.errors.txt tests/baselines/reference/computedPropertyNamesOnOverloads_ES5.errors.txt
13 lines
No EOL
546 B
Text
13 lines
No EOL
546 B
Text
tests/cases/conformance/es6/computedProperties/computedPropertyNames32_ES6.ts(6,10): error TS2467: A computed property name cannot reference a type parameter from its containing type.
|
|
|
|
|
|
==== tests/cases/conformance/es6/computedProperties/computedPropertyNames32_ES6.ts (1 errors) ====
|
|
function foo<T>() { return '' }
|
|
class C<T> {
|
|
bar() {
|
|
return 0;
|
|
}
|
|
[foo<T>()]() { }
|
|
~
|
|
!!! error TS2467: A computed property name cannot reference a type parameter from its containing type.
|
|
} |