From 0e9996dbb3fd4fcb876f218ef29de93b6b8bb16f Mon Sep 17 00:00:00 2001 From: tomerarnon Date: Tue, 4 Sep 2018 01:31:18 -0700 Subject: [PATCH] list == in interfaces.md and fix v0.7 deprecation warning for fieldnames() --- docs/src/lib/interfaces.md | 1 + src/LazySet.jl | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/src/lib/interfaces.md b/docs/src/lib/interfaces.md index 7c8f664b5a..aafb05b48b 100644 --- a/docs/src/lib/interfaces.md +++ b/docs/src/lib/interfaces.md @@ -56,6 +56,7 @@ norm(::LazySet, ::Real) radius(::LazySet, ::Real) diameter(::LazySet, ::Real) an_element(::LazySet{Real}) +==(::LazySet, ::LazySet) ``` ## Centrally symmetric set diff --git a/src/LazySet.jl b/src/LazySet.jl index 487430ac7a..1a589424bd 100644 --- a/src/LazySet.jl +++ b/src/LazySet.jl @@ -230,7 +230,7 @@ function ==(X::LazySet, Y::LazySet) return false end - for f in fieldnames(X) + for f in fieldnames(typeof(X)) if getfield(X, f) != getfield(Y, f) return false end