Skip to content
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

Fix new static warnings with Dart 3.3 #2173

Merged
merged 1 commit into from
Feb 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/src/js/compile.dart
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ List<String>? _normalizeNonCanonicalSchemes(Object? schemes) =>
};

/// Implements the simplification algorithm for custom function return `Value`s.
/// {@link https://github.com/sass/sass/blob/main/spec/types/calculation.md#simplifying-a-calculationvalue}
/// See https://github.com/sass/sass/blob/main/spec/types/calculation.md#simplifying-a-calculationvalue
Value _simplifyValue(Value value) => switch (value) {
SassCalculation() => switch ((
// Match against...
Expand Down
2 changes: 1 addition & 1 deletion lib/src/util/box.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class Box<T> {

Box._(this._inner);

bool operator ==(Object? other) => other is Box<T> && other._inner == _inner;
bool operator ==(Object other) => other is Box<T> && other._inner == _inner;

int get hashCode => _inner.hashCode;
}
Expand Down
Loading