Skip to content

ERROR: syntax: expected identifier after "const" when loading Distributions.jl #7039

@randy3k

Description

@randy3k

I am on the latest commit.

   _       _ _(_)_     |  A fresh approach to technical computing
  (_)     | (_) (_)    |  Documentation: http://docs.julialang.org
   _ _   _| |_  __ _   |  Type "help()" to list help topics
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 0.3.0-prerelease+3335 (2014-05-29 22:42 UTC)
 _/ |\__'_|_|_|\__'_|  |  Commit d448d72 (0 days old master)
|__/                   |  x86_64-apple-darwin13.2.0

julia> using Distributions
ERROR: syntax: expected identifier after "const"
 in include at boot.jl:244 (repeats 2 times)
 in reload_path at loading.jl:152
 in _require at loading.jl:67
 in require at loading.jl:51
while loading /Users/Randy/.julia/v0.3/Distributions/src/constants.jl, in expression starting on line 7
while loading /Users/Randy/.julia/v0.3/Distributions/src/Distributions.jl, in expression starting on line 223

Then I went to Distributions/src/constants.jl and ran the following code

julia> import Base.@math_const

julia> @math_const √2     1.4142135623730950488 sqrt(big(2.))
ERROR: syntax: expected identifier after "const"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions