FStar icon indicating copy to clipboard operation
FStar copied to clipboard

Confusing error on non-existing friend import

Open mtzguido opened this issue 2 years ago • 0 comments

$ cat ZZ.fst
module ZZ

friend IDontExist
$ cat ZZ.fsti
module ZZ

$ fstar.exe ZZ.fst
ZZ.fst(3,0-3,17): (Error 310) 'friend' declarations cannot refer to modules that lack interfaces
1 error was reported (see above)

"Cannot find module IDontExist" would be better

mtzguido avatar Aug 17 '23 23:08 mtzguido