6 lines
148 B
JavaScript
6 lines
148 B
JavaScript
// @flow
|
|
|
|
// unwrapping nested maybes should work
|
|
(('foo': ?(?string)): ?string); // ok
|
|
((123: ?(?number)): ?string); // error (only num ~> string)
|