prettier/tests/flow/weakmode/should_fail_without_weak.js

11 lines
202 B
JavaScript

/* @flow */
// 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;
}