mukul-rathi / bolt

Bolt is a language with in-built data-race freedom!
MIT License
553 stars 53 forks source link

Check thread references are not accessed in another thread #27

Closed mukul-rathi closed 4 years ago

mukul-rathi commented 4 years ago

A simple way of ensuring this would be to filter out var bindings to "thread" objects in the env of e2 in finish{ async{e1} async{e2} };e and then infer the type of the e2 to see if still type-checks.

Could also check that free-vars of e2 don't contain thread vars.