81 F.3d 103, 106 (9th Cir.1996); In re Stanton, 766 F.2d at 1285-86. Creditor Roger Virtue still has leave to file an amended complaint subject to the restrictions imposed by the bankruptcy court, and any legal errors affecting the parties’ claims can be appealed after the conclusion of the adversary proceeding. See WMX Techs., Inc. v. Miller, 104 F.3d 1133, 1136 (9th Cir.1997) (en banc) (dismissal of a complaint with leave to amend is not a final, appealable order). Further, the collateral order doctrine does not apply here because no final decision has been made regarding the Chapter 11 Trustee’s claim to immunity from Virtue’s potential amended claims. See Mueller v. Auker, 576 F.3d 979, 987 (9th Cir.2009); cf. Curry v. Castillo (In Re Castillo), 297 F.3d 940, 946 (9th Cir.2002) (<HOLDING>). Indeed, we are in no position to rule on the
holding such denial to be an immediately appealable collateral final order holding that a bankruptcy court order denying a trustees claim to immunity was final and appealable under the collateral order doctrine holding that pursuant to the collateral order doctrine and 28 usc  1291 a state may appeal from a district court order denying it eleventh amendment immunity holding that the issue of whether the attorney general was entitled to qualified immunity is immediately appealable under the collateral order doctrine holding that order denying representation to class of future claimants in bankruptcy proceeding is equivalent to denial of request to intervene and order denying right to intervene is appealable final order