prettier/tests/flow/malformed_code/text.js

7 lines
259 B
JavaScript
Raw Normal View History

2018-12-08 13:28:29 +03:00
// @flow
// Example found at
// https://github.com/sebmarkbage/art/blob/51ffce8164a555d652843241c2fdda52e186cbbd/parsers/svg/text.js#L137
const evil_regex_as_a_string = "/[\s<>]*$/";
const error: string = 123; // Should be an error, but can't lex this file