File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 11name = " ConstructionBase"
22uuid = " 187b0558-2788-49d3-abe0-74a17ed4e7c9"
33authors = [" Takafumi Arakaki" , " Rafael Schouten" , " Jan Weidner" ]
4- version = " 1.5.4 "
4+ version = " 1.5.5 "
55
66[deps ]
77LinearAlgebra = " 37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
Original file line number Diff line number Diff line change @@ -50,7 +50,9 @@ getproperties(o::Tuple) = o
5050
5151if VERSION >= v " 1.7"
5252 function check_properties_are_fields (obj)
53- if propertynames (obj) != fieldnames (typeof (obj))
53+ # for ntuples of symbols `===` is semantically the same as `==`
54+ # but triple equals is easier for the compiler to optimize, see #82
55+ if propertynames (obj) != = fieldnames (typeof (obj))
5456 error ("""
5557 The function `Base.propertynames` was overloaded for type `$(typeof (obj)) `.
5658 Please make sure `ConstructionBase.setproperties` is also overloaded for this type.
You can’t perform that action at this time.
0 commit comments