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

15 lines
680 B
Plaintext
Raw Normal View History

2015-06-20 00:45:18 +02:00
tests/cases/conformance/decorators/class/method/decoratorOnClassMethod12.ts(6,10): error TS2338: 'super' property access is permitted only in a constructor, member function, or member accessor of a derived class.
2015-04-08 02:43:10 +02:00
==== tests/cases/conformance/decorators/class/method/decoratorOnClassMethod12.ts (1 errors) ====
module M {
class S {
decorator(target: Object, key: string): void { }
}
class C extends S {
@super.decorator
~~~~~
2015-06-20 00:45:18 +02:00
!!! error TS2338: 'super' property access is permitted only in a constructor, member function, or member accessor of a derived class.
2015-04-08 02:43:10 +02:00
method() { }
}
}