When alkyl halide is heated with dry Ag2O