mirror of
https://github.com/denoland/deno.git
synced 2024-12-14 19:37:59 -05:00
14 lines
163 B
TypeScript
14 lines
163 B
TypeScript
export function foo(cond: boolean) {
|
|
let a = 0;
|
|
if (cond) {
|
|
a = 1;
|
|
} else {
|
|
a = 2;
|
|
}
|
|
|
|
if (a == 4) {
|
|
return 1;
|
|
} else {
|
|
return 2;
|
|
}
|
|
}
|