<div dir="ltr">
<p class=""><span class="">1. The following compiles fine in Erlang. </span></p><p class=""><span class="">-define(MY_INT_MACRO, 1).</span></p>
<p class=""><span class="">-define(MY_INT_MACRO, 2).</span></p>
<p class=""><span class="">-type my_type() :: ?MY_INT_MACRO1 | </span> ?MY_INT_ MACRO2 .</p>
<p class=""><span class=""><br></span></p><p class=""><span class="">2. The following doesn't </span></p><p class="">-define(MY_BITSTRING_MACRO, <<"01">>).</p><p class=""><span class="">-define(MY_BITSTRING_MACRO, <<"02">>).</span></p><p class=""><span class="">-type my_type() :: ?MY_BITSTRING_MACRO1 | </span> ?MY_BITSTRING_ MACRO2 .</p><p class=""><br></p><p class="">Why ? and is there a way to make this work ? </p><p class=""><br></p><p class="">Regards</p><p class="">sachin</p><p class=""><br></p><p class=""><br></p></div>