<div dir="ltr"><div dir="ltr">On Tue, Apr 1, 2025 at 11:49 AM Liam Miller-Cushon <<a href="mailto:cushon@google.com">cushon@google.com</a>> wrote:</div><div class="gmail_quote gmail_quote_container"><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>So all of this seems deliberate and working as intended, I was just curious what the rationale for the change was. Does anyone remember the history or have pointers to discussions about it on list?</div></div></blockquote><div><br></div><div>I don't know what the stated rationale was at the time, but the change makes intuitive sense to me now: Why should "e instanceof Y x" generate an error when "e instanceof Y" does not? That is to say: the correctness of the type test itself, which is what the error is about, has nothing to do with whether or not you happen to be declaring a new variable that captures a successful outcome of that test.</div><div><br></div><div>-Archie</div><div><br></div></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature">Archie L. Cobbs<br></div></div>