}
/** @return The resolved type */
public static JSType assertValidResolve(
JSType type, StaticScope<JSType> scope) {
ErrorReporter t = TestErrorReporter.forNoExpectedReports();
JSType resolvedType = type.resolve(t, scope);
assertTypeEquals("JSType#resolve should not affect object equality",
type, resolvedType);
Assert.assertEquals("JSType#resolve should not affect hash codes",
type.hashCode(), resolvedType.hashCode());