Re:I’m porting the TypeScript type checker tsc to Go
by pcj-github on Tuesday January 25, 2022 @05:37PM
(#30079116)
No spec, but the golden files that check that the compiler is working as intended are very comprehensive. If you can generate the same ~38,000 files in this directory from the test cases, you're pretty much on par with tsc: https://github.com/microsoft/TypeScript/tree/main/tests/base...
[ Parent
| on HN ]
Re:I’m porting the TypeScript type checker tsc to Go
by jacobr1 on Tuesday January 25, 2022 @05:57PM
(#30079329)
But that only works for a bug-for-bug compiler, no? If you want to build something like a linter, you couldn't use them to validate you are covering the fully syntactic range. Though I guess it would help look at coverage if your linter threw any errors, but it wouldn't validate correctness.