summaryrefslogtreecommitdiff
path: root/cli/tests/error_021_stack_method.ts
blob: a52d00deb6599def1a7e2400ee55ce59c5b780d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
class A {
  m(): never {
    throw new Error("method");
  }
}

try {
  new A().m();
} catch (error) {
  console.log(error.stack);
  throw error;
}