A playful competition: who can define a method that invalidates the most code?

An entry for the non-piracy category.
(Since the playing feild seems more open)

               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.6.0-DEV.1073 (2020-09-29)
 _/ |\__'_|_|_|\__'_|  |  Commit 4f0145b7b0* (1 day old master)
|__/                   |


julia> using SnoopCompile

julia> struct DoNotCare<:Real end

julia> inv = @snoopr Base.:(==)(x::DoNotCare, ::Any) = true;

julia> length(uinvalidated(inv))
282
7 Likes