prettier/tests/flow/destructuring/refinement_non_termination.js

11 lines
223 B
JavaScript

// @flow
function _([argArray]: Array<Value>) {
if (argArray instanceof NullValue || argArray instanceof UndefinedValue) {
}
};
class Value { }
class NullValue extends Value { }
class UndefinedValue extends Value { }