prettier/tests/flow/weakmode/should_pass_with_weak.js

11 lines
207 B
JavaScript

/* @flow weak */
// This should fail without weak mode, because of the glaring type error.
function returns_a_string() {
return "Hello";
}
function expects_an_int() {
return returns_a_string() * 10;
}