Skip to content

Commit 42b59e3

Browse files
juliohmeliascarv
andauthored
Update src/geoops/macros.jl
Co-authored-by: Elias Carvalho <[email protected]>
1 parent 064b84c commit 42b59e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/geoops/macros.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ function _colnames(expr)
7272
end
7373

7474
function _colargs!(colnames, expr)
75-
if Meta.isexpr(expr, :.) # handle expressions of the form obj.field
75+
if Meta.isexpr(expr, :., 2) && expr.args[2] isa QuoteNode # handle expressions of the form obj.field
7676
_colargs!(colnames, expr.args[1])
7777
else # descend on function/macro arguments
7878
start = Meta.isexpr(expr, [:call, :macrocall]) ? 2 : 1

0 commit comments

Comments
 (0)