∀ {A : Type u_1} {M₁ : Type u_2} {M₂ : Type u_3} {R : Type u_4} {S : Type u_5} [inst : Semiring A] [inst_1 : Semiring R]
  [inst_2 : Semiring S] [inst_3 : AddCommMonoid M₁] [inst_4 : Module A M₁] [inst_5 : Module R M₁]
  [inst_6 : TopologicalSpace M₁] [inst_7 : AddCommMonoid M₂] [inst_8 : Module A M₂] [inst_9 : Module R M₂]
  [inst_10 : TopologicalSpace M₂] [inst_11 : LinearMap.CompatibleSMul M₁ M₂ R A] [inst_12 : Module S M₂]
  [inst_13 : ContinuousConstSMul S M₂] [inst_14 : SMulCommClass A S M₂] [inst_15 : SMulCommClass R S M₂] (c : S)
  (f : M₁ →L[A] M₂), ContinuousLinearMap.restrictScalars R (c • f) = c • ContinuousLinearMap.restrictScalars R f