FlatLang / Flat

(Deprecated) Soon-to-be legacy Flat compiler all in one
6 stars 0 forks source link

Nested return doesn't trip compiler error #358

Open BSteffaniak opened 7 years ago

BSteffaniak commented 7 years ago
toReplace.class.isOfType(FieldDeclaration) &&
    fields.replace((FieldDeclaration)toReplace, (FieldDeclaration)replacement) ||
toReplace.class.isOfType(FunctionDeclaration) &&
    return functions.replace((FunctionDeclaration)toReplace, (FunctionDeclaration)replacement)