Fieldnames function does not work for GLM output

To my horror, fieldnames function does not work any more for me to inspect the GLM returned object.

glmout = glm(@formula(low ~ age + lwt + race),df,Binomial())

Previously fieldnames(glmout) worked find but it now generates

MethodError: no method matching fieldnames(::StatsModels.DataFrameRegressionModel{GeneralizedLinearModel{GlmResp{Array{Float64,1},Binomial{Float64},LogitLink},DensePredChol{Float64,LinearAlgebra.Cholesky{Float64,Array{Float64,2}}}},Array{Float64,2}})
Closest candidates are:
fieldnames(!Matched::Core.TypeofBottom) at reflection.jl:175
fieldnames(!Matched::Type{#s8} where #s8<:Tuple) at reflection.jl:177
fieldnames(!Matched::DataType) at reflection.jl:172

top-level scope at none:0
include_string(::Module, ::String, ::String) at loading.jl:1002
include_string(::Module, ::String, ::String, ::Int64) at eval.jl:30
(::getfield(Atom, Symbol("##108#113")){String,Int64,String})() at eval.jl:91
withpath(::getfield(Atom, Symbol("##108#113")){String,Int64,String}, ::Nothing) at utils.jl:30
withpath at eval.jl:46 [inlined]
#107 at eval.jl:90 [inlined]
hideprompt(::getfield(Atom, Symbol("##107#112")){String,Int64,String}) at repl.jl:76
macro expansion at eval.jl:89 [inlined]
(::getfield(Atom, Symbol("##106#111")){Dict{String,Any}})() at task.jl:85

Is there any other method I can use to inspect the returned object?


fieldnames(typeof(obj)); fieldnames works on the type of the thing, not the thing itself.

Thank you.

Also PSA: use Julia 0.7 if you are upgrading might be helpful here - I think this should have given a deprecation warning on 0.7!?