<div dir="ltr"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div style="font-family:"trebuchet ms",sans-serif">all ext()s are int()s but not all int()s are ext()s.</div></div></blockquote><div> </div><div>This is true, ext() is declared to be a subtype of int(), so it refers to a subset of the terms that are int()-s.</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div style="font-family:"trebuchet ms",sans-serif">You can't pass an expression of type int() to a function that expects something with type ext(), because you're breaking opacity (in dialyzer's mind).<br></div></div></blockquote><div><br></div><div>That would be true in a <i>different module</i>, but within the module where you declare an opaque type you are allowed to break opacity. (Otherwise an opaque type would be completely useless.) </div><div><br></div><div>Daniel</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
</blockquote></div></div>