You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the below program we should know that something typed as ITestOutput won't ever be non-null. We should be able to optimize out the null check branch in Foo.
Yeah, in the top-post repro case the interface method call brings the interface type to life. We have some conservative assumptions within the whole program view due to IDynamicInterfaceCastable. I'm looking if I can narrow those assumptions down somehow. What should give you 0 instead of -1 today is:
In the below program we should know that something typed as
ITestOutput
won't ever be non-null. We should be able to optimize out the null check branch inFoo
.Cc @nagya @jevansaks @EgorBo
The text was updated successfully, but these errors were encountered: