From 7c336c38abbed2e8463a2db8add5adf6f4dc0ab4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lars=20G=C3=B6ttgens?= Date: Mon, 22 May 2023 15:36:20 +0200 Subject: [PATCH] add warning to `hash(::AbsMPolyMultSet)` --- src/Rings/mpoly-localizations.jl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Rings/mpoly-localizations.jl b/src/Rings/mpoly-localizations.jl index 17dcfe69810a..50ac5e63ad3e 100644 --- a/src/Rings/mpoly-localizations.jl +++ b/src/Rings/mpoly-localizations.jl @@ -534,6 +534,8 @@ function ==(T::AbsMPolyMultSet, U::AbsMPolyMultSet) end function Base.hash(T::AbsMPolyMultSet, h::UInt) + @warn """Hashing of multiplicative sets of type AbsMPolyMultSet is badly implemented + and should not be used. Please provide a better implementation for the type $(typeof(T)).""" b = 0x7ce51a28c47ec5e1 % UInt h = hash(typeof(T), h) h = hash(ambient_ring(T), h)