Translation records should not include options for empty models #5459
Labels
kind: enhancement
Enhancements, feature requests, etc. These are NOT bugs, but ways we can improve Dafny
release-blocker
Must be resolved before the next release
When loading
.dtr
files, there is a check that a module does not appear more than once in any such file. But it is possible for a prefix module to appear in multiple libraries without any actual conflict (i.e. the moduleA.B
in the snippetmodule A.B.C { ... }
. The error you get when something likeA.B
appears multiple times is spurious.The best deeper fix seems to be to not translate empty modules at all, since emitting a declaration of a target language module/package/etc will likely cause target language tooling errors as well.
The text was updated successfully, but these errors were encountered: