Closed aabtop closed 4 years ago
Lots of discussion over at https://github.com/microsoft/TypeScript/issues/5916 about this. Seems like we should enable --strictNullChecks
and/or --noImplicitReturns
.
Fixed in e690817e020e9d94f61b14751281c1e70fb45e8a .
A situation arose where the code:
Resulted in a segmentation fault. What was happening was that the first
return
statement on its own line was being interpreted as a statement on its own, and somehow getting past the type checker as it is clearly not returning a h.Region3 here.Perhaps there are some TypeScript compiler settings that would enable more strict checking of types here?
Attached is the full file that seg faults on
hypo bad_house.ts Main house
.