Skip to content

Commit b0ed369

Browse files
Fix review
1 parent 59a1ef8 commit b0ed369

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1574,8 +1574,8 @@ export class Compiler extends DiagnosticEmitter {
15741574
/** Force compilation of stdlib alternative if a builtin. */
15751575
forceStdAlternative: bool = false
15761576
): bool {
1577-
if (instance.is(CommonFlags.Compiled)) return !instance.is(CommonFlags.Errored);
15781577
if (instance.is(CommonFlags.Errored)) return false;
1578+
if (instance.is(CommonFlags.Compiled)) return true;
15791579

15801580
if (!forceStdAlternative) {
15811581
if (instance.hasDecorator(DecoratorFlags.Builtin)) return true;

0 commit comments

Comments
 (0)