Skip to content
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.

Incorrect unreachable code error for type alias after function return #564

Closed
danquirk opened this issue Aug 12, 2015 · 0 comments · Fixed by #1183
Closed

Incorrect unreachable code error for type alias after function return #564

danquirk opened this issue Aug 12, 2015 · 0 comments · Fixed by #1183

Comments

@danquirk
Copy link

function foo() {
  return 1;
  function bar() {}
  type Bar = string;
}

Reports unreachable code on the type alias.

Using tslint v2.5.0-dev.1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants