Open sligocki opened 2 years ago
By running your example through the dafny
CLI I can see the underlying error:
tape.dfy[Tape](7,16): Error: a compiled module is not allowed to use an abstract module (TM)
That's because in TapeInterface
you specify that TM
must be a module that refines TuringMachineInterface
, but the concrete Tape
module doesn't specify which concrete module it uses. Adding import TM = TuringMachineNat
to the top of that module resolves the error and is what I believe you intended.
This still exposes that there are incorrect assumptions about resolution that only the language server exposes for some reason though, so thank you for the bug report!
Thanks, glad I could help.
I encountered the following error. Version
v2.8.2
in Visual Studios.File
tape.dfy
File
turing_machine.dfy
: