mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
29 lines
402 B
TypeScript
29 lines
402 B
TypeScript
//// [tests/cases/compiler/ifElseWithStatements1.ts] ////
|
|
|
|
//// [ifElseWithStatements1.ts]
|
|
if (true)
|
|
f();
|
|
else
|
|
f();
|
|
|
|
function foo(): boolean {
|
|
if (true)
|
|
return true;
|
|
else
|
|
return false;
|
|
}
|
|
|
|
|
|
//// [ifElseWithStatements1.js]
|
|
"use strict";
|
|
if (true)
|
|
f();
|
|
else
|
|
f();
|
|
function foo() {
|
|
if (true)
|
|
return true;
|
|
else
|
|
return false;
|
|
}
|