mirror of
https://github.com/dart-lang/sdk
synced 2024-10-14 16:37:43 +00:00
pkg:kernel - Fix three bugs identified by lints
Change-Id: I753153a9c8f5adeb9be516f60590bd3f33bc4923 Reviewed-on: https://dart-review.googlesource.com/c/88680 Reviewed-by: Kevin Millikin <kmillikin@google.com> Commit-Queue: Kevin Moore <kevmoo@google.com>
This commit is contained in:
parent
6f3ce5b9e9
commit
16f7f421df
|
@ -609,7 +609,7 @@ class ClosedWorldClassHierarchy implements ClassHierarchy {
|
|||
throw "${class_.fileUri}: No class info for ${class_.name}";
|
||||
}
|
||||
_ClassInfo superInfo = _infoFor[superclass];
|
||||
if (info == null) {
|
||||
if (superInfo == null) {
|
||||
throw "${superclass.fileUri}: No class info for ${superclass.name}";
|
||||
}
|
||||
if (!info.isSubtypeOf(superInfo)) return null;
|
||||
|
@ -1405,7 +1405,7 @@ class ClassSet extends IterableBase<Class> {
|
|||
ClassSet(this._classes);
|
||||
|
||||
bool contains(Object class_) {
|
||||
return _classes.contains(_classes);
|
||||
return _classes.contains(class_);
|
||||
}
|
||||
|
||||
ClassSet union(ClassSet other) {
|
||||
|
|
|
@ -633,7 +633,7 @@ abstract class FunctionTypeRelation {
|
|||
}
|
||||
}
|
||||
|
||||
if (!other.hasNamedParameters) true;
|
||||
if (!other.hasNamedParameters) return true;
|
||||
|
||||
int j = positionalParameters;
|
||||
for (int i = otherPositionalParameters;
|
||||
|
|
Loading…
Reference in a new issue