TypeScript/tests/baselines/reference/computedPropertyNames32.errors.txt

13 lines
538 B
Text
Raw Normal View History

2015-01-22 00:05:19 +01:00
tests/cases/conformance/es6/computedProperties/computedPropertyNames32.ts(6,10): error TS2466: A computed property name cannot reference a type parameter from its containing type.
==== tests/cases/conformance/es6/computedProperties/computedPropertyNames32.ts (1 errors) ====
function foo<T>() { return '' }
class C<T> {
bar() {
return 0;
}
[foo<T>()]() { }
~
2015-01-22 00:05:19 +01:00
!!! error TS2466: A computed property name cannot reference a type parameter from its containing type.
}