Skip to content

Commit c9cdecf

Browse files
committed
test
1 parent 37ca029 commit c9cdecf

File tree

5 files changed

+4151
-0
lines changed

5 files changed

+4151
-0
lines changed

src/resolver.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3767,6 +3767,9 @@ export class Resolver extends DiagnosticEmitter {
37673767
return Type.bool;
37683768
}
37693769
break;
3770+
case NodeKind.True:
3771+
case NodeKind.False:
3772+
return Type.bool;
37703773
}
37713774
this.error(DiagnosticCode.Cannot_infer_type, expr.range);
37723775
return null;

0 commit comments

Comments
 (0)