<commit_before>import styled from "../..";

declare const A: React.ComponentClass;
declare const B: React.StatelessComponent;
declare const C: React.ComponentClass | React.StatelessComponent;

styled(A); // succeeds
styled(B); // succeeds
styled(C); // used to fail; see issue trail linked below

// https://github.com/mui-org/material-ui/pull/8781#issuecomment-349460247
// https://github.com/mui-org/material-ui/issues/9838
// https://github.com/styled-components/styled-components/pull/1420
// https://github.com/styled-components/styled-components/pull/1427<commit_msg>Add link to the TypeScript bug report<commit_after>import styled from "../..";

declare const A: React.ComponentClass;
declare const B: React.StatelessComponent;
declare const C: React.ComponentClass | React.StatelessComponent;

styled(A); // succeeds
styled(B); // succeeds
styled(C); // used to fail; see issue trail linked below

// https://github.com/mui-org/material-ui/pull/8781#issuecomment-349460247
// https://github.com/mui-org/material-ui/issues/9838
// https://github.com/styled-components/styled-components/pull/1420
// https://github.com/Microsoft/TypeScript/issues/21175
// https://github.com/styled-components/styled-components/pull/1427
{'fraction_non_alphanumeric': 0.15171288743882544, 'fraction_numerical': 0.044861337683523655, 'mean_word_length': 4.429203539823009, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 9, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1442239', 'n_tokens_mistral': 424, 'n_tokens_neox': 384, 'n_words': 72}