Package protecting incorrectly exposed type