New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DDC has no compile time null safety mode flag #41694
Comments
Note that @mit-mit recently filed an issue to change the name of the null safety flag, so if you're visiting that code consider folding that work into it. :) |
Affects DDC strong mode failing these 3 co19 tests: |
Cleanup workaround to avoid compiling packages leftover from before the unfork of the SDK. The collection package is still used by one regression test. We could rewrite the test in the future to avoid using the package but for now collection will get compiled into the module with the test itself. The other packages get used in tests that are skipped by DDC. Change-Id: I5bbe24e98e3f4bf5d75f557fefb05cbee54c46f2 Issue: #41694 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/148281 Commit-Queue: Nicholas Shahan <nshahan@google.com> Reviewed-by: Bob Nystrom <rnystrom@google.com> Reviewed-by: Sigmund Cherem <sigmund@google.com>
@nshahan any news on this one? Is this on track for completion this week? |
Validates that the .dill files provided for dependencies and the SDK support sound null safety when compiling for strong mode. Change-Id: Id1f7547a6bc473b901bfce62145cc918353c8ea4 Issue: #41694 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/149080 Reviewed-by: Jens Johansen <jensj@google.com> Commit-Queue: Nicholas Shahan <nshahan@google.com>
@mit-mit I should be landing the necessary bits today. |
DDC has been relying on a runtime mode flag for null safety that gets set by all the build/test systems and bootstrapping logic but isn't using any flag for compile time.
DDC doesn't need this information itself but should pass the mode along to the CFE to ensure correct compile time semantics are enforced.
The CFE defaults to weak mode. Other backends are using the flag
--null-safety
to signal the strong/strict null safety mode.The text was updated successfully, but these errors were encountered: