         }
         
         func check(routine:Routine) throws {
+            try! declarationStorage.checkDeclaration()
             let store:Store = try! declarationStorage.check()
             var mechModeType:MechModeType = MechModeType.COPY
             let mechType = try! mechMode?.check()

                        throw ContextError.IdentifierAlreadyDeclared
                    } else {
                        AST.scope!.recordTable[record.ident] = record
                    }
                } else {
                    let check = AST.globalRecordTable[record.ident]

            } else {
                store = Store(ident: typedIdent.ident, type: type, isConst: true)
            }
        
            return store
        }
