viperproject / chalice2silver

Other
0 stars 0 forks source link

Typechecker allows assignment to method parameter via fork #86

Open viper-admin opened 7 years ago

viper-admin commented 7 years ago

Created by @vakaras on 2017-01-10 09:57

The following code passes type checking and crashes during translation:

#!chalice
class A {
    method callee() {}
    method caller(t: token<A.callee>) {
        fork t := callee()
    }
}

The typechecker should report an error on line fork t := callee() because assignments to method parameters are illegal in Chalice.