Files
why3/bench/programs/warn-typing/label_scope.mlw
Sylvain Dailler 431ed6caf3 "at/old operator unused" is now a warning not an error.
The warning can be disabled by a debug flag.
The bench was changed so as to accept examples that **should** output
warning but not fail (this category did not exist, it does now) and
label_scope has been switched to it.
2018-10-11 10:56:04 +02:00

12 lines
151 B
Plaintext

module T
use ref.Ref
let f () =
label Foo in
let x = ref 0 in
assert { 42 = !x at Foo } (* variable x does not exist at Foo *)
end