mirror of
https://github.com/denoland/deno.git
synced 2024-12-11 10:07:54 -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;
|
|
}
|
|
}
|