Skip to content

Commit 0efe98b

Browse files
add deprecation definition for FloatingPoint, NEWS entry.
1 parent cfd02e9 commit 0efe98b

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

NEWS.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ Language changes
8484

8585
* `String` is renamed to `AbstractString` ([#8872]).
8686

87+
* `FloatingPoint` is renamed to `AbstractFloat` ([#12162]).
88+
8789
* `None` is deprecated; use `Union{}` instead ([#8423]).
8890

8991
* `Nothing` (the type of `nothing`) is renamed to `Void` ([#8423]).
@@ -1511,3 +1513,4 @@ Too numerous to mention.
15111513
[#11922]: https://github.com/JuliaLang/julia/issues/11922
15121514
[#11985]: https://github.com/JuliaLang/julia/issues/11985
15131515
[#12031]: https://github.com/JuliaLang/julia/issues/12031
1516+
[#12162]: https://github.com/JuliaLang/julia/issues/12162

base/deprecated.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -654,3 +654,6 @@ function getindex{T<:Union{Char,Number}}(::Type{T}, r1::Range, rs::Range...)
654654
end
655655
return a
656656
end
657+
658+
const FloatingPoint = AbstractFloat
659+
export FloatingPoint

0 commit comments

Comments
 (0)