Add more information to checkState failure.
@@ -972,7 +972,8 @@ final class ObjectType implements TypeWithProperties {
resultNomType = NominalType.pickSubclass(this.nominalType, other.nominalType);
}
if (resultNomType.isClassy()) {
- checkState(this.fn == null && other.fn == null);
+ checkState(this.fn == null, this.fn);
+ checkState(other.fn == null, other.fn);
PersistentMap<String, Property> newProps =
meetPropsHelper(this.commonTypes, true, resultNomType, this.props, other.props);
if (this.commonTypes.isBottomPropertyMap(newProps)) {
