add warning on smartmatch of Match or Nil