           removeSwiftDepsFile: removeSwiftDepsFile)
       }
     }
+    if removedFileDependsOnChangedFile {
+      replace(contentsOf: "main", with: "let foo = \"hello\"")
+    }
     try checkRestorationOfIncrementalityAfterRemoval(
       removedInput: newInput,
       defining: topLevelName,
       removeInputFromInvocation: removeInputFromInvocation,
       removeSwiftDepsFile: removeSwiftDepsFile,
-      afterRestoringBadPriors: restoreBadPriors)
+      afterRestoringBadPriors: restoreBadPriors,
+      removedFileDependsOnChangedFile: removedFileDependsOnChangedFile)
   }
 }
 

  static func buildArray(_ components: [[Diagnostic.Message]]) -> [Diagnostic.Message] {
    components.flatMap{$0}
  }
  static func buildEither(first component: [Diagnostic.Message]) -> [Diagnostic.Message] {
    component
  }

    ) {
      enablingCrossModule
      readGraph
      schedulingChangedInitialQueuing("main", "other")
      findingBatchingCompiling("main", "other")
      schedLinking
    }
