Quantcast
Channel: Dafny: An Automatic Program Verifier for Functional Correctness
Viewing all articles
Browse latest Browse all 1106

Created Unassigned: Confusing error message when importing from top level [109]

$
0
0
If there's a module-import line that's not inside a module, the error message generated is confusing. It says "Duplicate module name: <ModuleName>" instead of something more meaningful like "Can't import module <ModuleName> when not inside of a module."

Here's some sample code that produces the confusing error message:

module Mod1
{
type IntRenamed = int
}

import opened Mod1


Viewing all articles
Browse latest Browse all 1106


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>