17 lines
187 B
JavaScript
17 lines
187 B
JavaScript
![]() |
/**
|
||
|
* @flow
|
||
|
* @preventMunge
|
||
|
*/
|
||
|
|
||
|
class Foo {
|
||
|
_method(): string {
|
||
|
return 'this is not private';
|
||
|
}
|
||
|
}
|
||
|
|
||
|
class Bar extends Foo {
|
||
|
test() {
|
||
|
(this._method(): string); // ok
|
||
|
}
|
||
|
}
|