Let's look at schema with simple join on views. The linked gist won't compile, because using a Schema2 requires a table to be parsed... Which can not be done until @SimpleView, using the Scema2 is parsed.
I see 3 solutions (aside from not using AnnotatedSQL there):
Hardcode stuff from Schema2 into the contract (not nice, isn't it?);
Postpone individual tables/views until further compilation passes;
Let's look at schema with simple join on views. The linked gist won't compile, because using a Schema2 requires a table to be parsed... Which can not be done until
@SimpleView
, using the Scema2 is parsed.I see 3 solutions (aside from not using AnnotatedSQL there):