mirror of
https://github.com/hanzoai/prettier.git
synced 2026-09-24 17:02:04 +00:00
12 lines
273 B
JavaScript
12 lines
273 B
JavaScript
/**
|
|
* @providesModule ES6_Default_NamedClass1
|
|
* @flow
|
|
*/
|
|
|
|
export default class Foo { givesANum(): number { return 42; }};
|
|
|
|
// Regression test for https://github.com/facebook/flow/issues/511
|
|
//
|
|
// Default-exported class should also be available in local scope
|
|
new Foo();
|