mukul-rathi / bolt

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

Type-check fields + method + function type signatures #137

Closed mukul-rathi closed 4 years ago

mukul-rathi commented 4 years ago

Ensure types assigned to fields + types using in type signatures are valid. Amazing how you can forget to type-check such simple things.

e.g. flag the following uses of NonExistentClass:

class Foo{
    capability Bar;
    var NonExistentClass field : Bar;
    void testSomething(NonExistentClass x) : Bar{
    }
}

function void test(NonExistentClass c){
}