sway icon indicating copy to clipboard operation
sway copied to clipboard

Explicit ordering of `dep` statements is required to resolve dependencies.

Open otrho opened this issue 4 years ago • 2 comments

Found by @nfurfaro:

In this case,

library std;

dep ops;
dep hash;
dep storage;
dep constants;
dep chain;
dep b512;
dep ecr;

ecr uses b512, so b512 must be declared first.

otrho avatar Nov 19 '21 21:11 otrho

@nfurfaro Does ecr have a dep b512; of its own? If so then it's definitely a bug, if not I'm not so sure.

otrho avatar Nov 19 '21 21:11 otrho

@otrho No. In the example, it was just:

library ecr;
use ::b512::*;

nfurfaro avatar Nov 19 '21 22:11 nfurfaro