# Compat.Statistics.mean conflicts with Base.mean in v0.6

**URL:** <https://discourse.julialang.org/t/compat-statistics-mean-conflicts-with-base-mean-in-v0-6/13024>\
**Category:** General Usage\
**Created:** [August 8, 2018, 6:32am UTC](https://discourse.julialang.org/t/compat-statistics-mean-conflicts-with-base-mean-in-v0-6/13024 "2018-08-08T06:32:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tk3369](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tk3369/32/2824_2.png) [@tk3369](https://discourse.julialang.org/u/tk3369)\
**Post date:** [August 8, 2018, 6:32am UTC](https://discourse.julialang.org/t/compat-statistics-mean-conflicts-with-base-mean-in-v0-6/13024/1 "2018-08-08T06:32:38Z")

</div>

Is Compat package falling short of the expectation for making code work in both v0.6 and v0.7? Am I supposed to throw in another `@static if` block and import Statistics for v0.7?

```julia
$ julia

julia> VERSION
v"0.6.3"

julia> using Compat.Statistics

julia> mean
WARNING: both Statistics and Base export "mean"; uses of it in module Main must be qualified
ERROR: UndefVarError: mean not defined

```
