diff --git a/CHANGELOG.md b/CHANGELOG.md index 8f85329cc..0478af259 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -36,6 +36,7 @@ ### Internal * Using Core 13.1.2. * No longer use vcpkg ([#1069](https://github.com/realm/realm-dart/pull/1069)) +* Upgraded analyzer dependency to ^5.0.0. ([#1072](https://github.com/realm/realm-dart/pull/1072)) ## 0.8.0+rc (2022-11-14) diff --git a/flutter/realm_flutter/tests/pubspec.yaml b/flutter/realm_flutter/tests/pubspec.yaml index 3e769eea7..43dfbfd24 100644 --- a/flutter/realm_flutter/tests/pubspec.yaml +++ b/flutter/realm_flutter/tests/pubspec.yaml @@ -28,6 +28,8 @@ dev_dependencies: test: ^1.20.1 timezone: ^0.9.0 +dependency_overrides: + test_api: 0.4.17 flutter: uses-material-design: true diff --git a/generator/lib/src/pseudo_type.dart b/generator/lib/src/pseudo_type.dart index e31ef0790..308cc7e0b 100644 --- a/generator/lib/src/pseudo_type.dart +++ b/generator/lib/src/pseudo_type.dart @@ -15,7 +15,7 @@ class PseudoType extends TypeImpl { final NullabilitySuffix nullabilitySuffix; final String _name; - PseudoType(this._name, {this.nullabilitySuffix = NullabilitySuffix.none}) : super(null); + PseudoType(this._name, {this.nullabilitySuffix = NullabilitySuffix.none}); Never get _never => throw UnimplementedError(); @@ -53,4 +53,7 @@ class PseudoType extends TypeImpl { @override Element? get element2 => null; + + @override + Element? get element => _never; } diff --git a/generator/pubspec.yaml b/generator/pubspec.yaml index 535828435..4a9b8c724 100644 --- a/generator/pubspec.yaml +++ b/generator/pubspec.yaml @@ -15,7 +15,7 @@ environment: sdk: ">=2.17.5 <3.0.0" dependencies: - analyzer: ^4.7.0 + analyzer: ^5.0.0 build_resolvers: ^2.0.9 build: ^2.0.0 dart_style: ^2.2.0