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
With null-safety, a factory can no longer return null. The implicit return type is non-nullable, so all these factory constructors become invalid code. The tests need to be fixed before the code can be migrated to null safety.
Example from pkg/analysis_server/test/analysis/notification_highlights2_test.dart:
factoryA() =>null;
Other occurrences are in the mock_sdk.dart library
The text was updated successfully, but these errors were encountered:
With null-safety, a factory can no longer return
null
. The implicit return type is non-nullable, so all these factory constructors become invalid code. The tests need to be fixed before the code can be migrated to null safety.Example from pkg/analysis_server/test/analysis/notification_highlights2_test.dart:
Other occurrences are in the
mock_sdk.dart
libraryThe text was updated successfully, but these errors were encountered: