Closed ranjitjhala closed 3 months ago
Flux should reject the below, but currently doesn't, AFAICT
trait Shape { #[flux::sig(fn(self: _) -> i32{v: 0 <= v})] fn vertices(&self) -> i32; } // ------------------------------------------------------ struct Square {} impl Shape for Square { fn vertices(&self) -> i32 { 0 - 4 //~ ERROR: refinement type } }
@nilehmann I thought we'd (?) implemented this a while ago, but clearly no...?
This is a duplicate of https://github.com/flux-rs/flux/issues/592, no?
ah so it is! thanks!
Flux should reject the below, but currently doesn't, AFAICT
@nilehmann I thought we'd (?) implemented this a while ago, but clearly no...?