                     .initCompleted {
                         let c = $1 as! CDependingOnAD
                         c.a = $0.resolve(AType.self)
-                }
+                    }
                 container.register(DType.self) { _ in DDependingOnBC() }
                     .initCompleted {
                         let d = $1 as! DDependingOnBC
                         d.b = $0.resolve(BType.self)
                         d.c = $0.resolve(CType.self)
-                }
+                    }
                 
                 let a = container.resolve(AType.self) as! ADependingOnB
                 let b = a.b as! BDependingOnC

                    .initCompleted { (c, i) in
                        let daughter = i as! Daughter
                        daughter.parent = c.resolve(ParentType.self)
                }
                
                let mother = container.resolve(ParentType.self) as! Mother
                let daughter = mother.child as! Daughter

                    .initCompleted { (c, i) in
                        let mother = i as! Mother
                        mother.child = c.resolve(ChildType.self)
                    }
                container.register(ChildType.self) { _ in Daughter() }
                    .initCompleted { (c, i) in
                        let daughter = i as! Daughter
                        daughter.parent = c.resolve(ParentType.self)!
                    }
                
                let mother = container.resolve(ParentType.self) as! Mother
                let daughter = mother.child as! Daughter
