Skip to content
Snippets Groups Projects
Unverified Commit 8a875db7 authored by Michiel Cottaar's avatar Michiel Cottaar
Browse files

use new propertynames interface

parent b49e5d01
No related branches found
No related tags found
1 merge request!7Add variables as properties
...@@ -110,7 +110,7 @@ end ...@@ -110,7 +110,7 @@ end
function adjust_helper(block::AbstractBlock, used_names::UsedNamesType; kwargs...) function adjust_helper(block::AbstractBlock, used_names::UsedNamesType; kwargs...)
params = [] params = []
for prop_name in propertynames(block) for prop_name in fieldnames(typeof(block))
push!(params, adjust_helper(getproperty(block, prop_name), used_names; kwargs...)) push!(params, adjust_helper(getproperty(block, prop_name), used_names; kwargs...))
end end
new_block = typeof(block)(params...) new_block = typeof(block)(params...)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment