Skip to content

Commit

Permalink
turn on deprecation warnings for type and immutable
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffBezanson committed May 16, 2017
1 parent bd76bfe commit 9a8adb5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 3 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ Compiler/Runtime improvements
Deprecated or removed
---------------------

* The keyword `immutable` is fully deprecated to `struct`, and
`type` is fully deprecated to `mutable struct` ([#19157], [#20418]).

* The method `srand(rng, filename, n=4)` has been deprecated ([#21359]).


Expand Down
5 changes: 2 additions & 3 deletions src/julia-parser.scm
Original file line number Diff line number Diff line change
Expand Up @@ -1331,11 +1331,10 @@
(expect-end (take-lineendings s) "primitive type"))))))
;; deprecated type keywords
((type)
;; TODO fully deprecate post-0.6
;;(syntax-deprecation s "type" "mutable struct")
(syntax-deprecation s "type" "mutable struct") ;; retain in 0.7
(parse-struct-def s #t word))
((immutable)
;;(syntax-deprecation s "immutable" "struct")
(syntax-deprecation s "immutable" "struct") ;; retain in 0.7
(parse-struct-def s #f word))
((bitstype)
(let* ((nb (with-space-sensitive (parse-cond s)))
Expand Down

0 comments on commit 9a8adb5

Please sign in to comment.