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:
Kevin Moore 2019-01-08 14:54:05 +00:00 committed by commit-bot@chromium.org
parent 6f3ce5b9e9
commit 16f7f421df
2 changed files with 3 additions and 3 deletions

View file

@ -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) {

View file

@ -633,7 +633,7 @@ abstract class FunctionTypeRelation {
}
}
if (!other.hasNamedParameters) true;
if (!other.hasNamedParameters) return true;
int j = positionalParameters;
for (int i = otherPositionalParameters;