summaryrefslogtreecommitdiff
path: root/tests/testdata/coverage/multisource/foo.ts
blob: 0559cadd80062db4665bffc369e2507c6b69dbb8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
export function foo(cond: boolean) {
  let a = 0;
  if (cond) {
    a = 1;
  } else {
    a = 2;
  }

  if (a == 4) {
    return 1;
  } else {
    return 2;
  }
}