Fix formatting in GlobalTypeInfo.
@@ -702,10 +702,12 @@ class GlobalTypeInfo implements CompilerPass, TypeIRegistry {
if (!resultType.isBottom()) {
resultType = inheritedType;
} else {
- warnings.add(JSError.make(
+ warnings.add(
+ JSError.make(
rawType.getDefSite(),
SUPER_INTERFACES_HAVE_INCOMPATIBLE_PROPERTIES,
- rawType.getName(), pname,
+ rawType.getName(),
+ pname,
defs.toString()));
continue add_interface_props;
}
@@ -718,14 +720,16 @@ class GlobalTypeInfo implements CompilerPass, TypeIRegistry {
if (rawType.inheritsFromIObject()) {
JSType wrapped = rawType.getInstanceAsJSType();
if (wrapped.getIndexType() == null) {
- warnings.add(JSError.make(
+ warnings.add(
+ JSError.make(
rawType.getDefSite(),
SUPER_INTERFACES_HAVE_INCOMPATIBLE_PROPERTIES,
rawType.getName(),
"IObject<K,V>#index",
"the keys K have types that can't be joined."));
} else if (wrapped.getIndexedType() == null) {
- warnings.add(JSError.make(
+ warnings.add(
+ JSError.make(
rawType.getDefSite(),
SUPER_INTERFACES_HAVE_INCOMPATIBLE_PROPERTIES,
rawType.getName(),
