f4d0ea6539
* Support `target: es2020` * use CRLF * update symbols Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
19 lines
410 B
TypeScript
19 lines
410 B
TypeScript
//// [callChainWithSuper.ts]
|
|
// GH#34952
|
|
class Base { method?() {} }
|
|
class Derived extends Base {
|
|
method1() { return super.method?.(); }
|
|
method2() { return super["method"]?.(); }
|
|
}
|
|
|
|
//// [callChainWithSuper.js]
|
|
"use strict";
|
|
// GH#34952
|
|
class Base {
|
|
method() { }
|
|
}
|
|
class Derived extends Base {
|
|
method1() { return super.method?.(); }
|
|
method2() { return super["method"]?.(); }
|
|
}
|