2023-12-08 02:54:52 -05:00
|
|
|
export function foo(cond: boolean) {
|
2023-12-11 22:42:57 -05:00
|
|
|
let a = 0;
|
2023-12-08 02:54:52 -05:00
|
|
|
if (cond) {
|
2023-12-11 22:42:57 -05:00
|
|
|
a = 1;
|
|
|
|
} else {
|
|
|
|
a = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (a == 4) {
|
2023-12-08 02:54:52 -05:00
|
|
|
return 1;
|
|
|
|
} else {
|
|
|
|
return 2;
|
|
|
|
}
|
|
|
|
}
|