News for hackers. Stuff that matters.
Re:TypeScript 2.3 by svieira on Thursday April 27, 2017 @02:50PM (#14213810)
Interestingly enough #1 seems more like another case of #2, because:

    let promisedString = new Promise<string>(
      resolve => {
        // Fails as expected in TypeScript!
        resolve(42)
      }
    )
Re:TypeScript 2.3 by andreypopp on Thursday April 27, 2017 @02:58PM (#14213866)
Not sure — TS doesn't report any errors in the original code so I assume it thinks code is fine but it is not. That's totally different than #2.