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 authored and tkelman committed May 13, 2017
1 parent 9447142 commit 3884fdc
Showing 1 changed file with 2 additions and 3 deletions.
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 3884fdc

Please sign in to comment.