mirror of
https://github.com/denoland/deno.git
synced 2024-12-25 08:39:09 -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;
|
|
}
|
|
}
|