mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
22 lines
547 B
Plaintext
22 lines
547 B
Plaintext
noSuperInJSDocExtends.js(14,9): error TS2335: 'super' can only be referenced in a derived class.
|
|
|
|
|
|
==== noSuperInJSDocExtends.js (1 errors) ====
|
|
class Based { }
|
|
/** @extends {Based} */
|
|
class Derived {
|
|
constructor() {
|
|
this;
|
|
this.x = 10;
|
|
var that = this;
|
|
}
|
|
}
|
|
|
|
/** @extends {Based} */
|
|
class Derived2 {
|
|
constructor() {
|
|
super();
|
|
~~~~~
|
|
!!! error TS2335: 'super' can only be referenced in a derived class.
|
|
}
|
|
} |