Skip to content

Commit

Permalink
reserve syntax that could be used for computed field types (#18466) (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffBezanson authored Apr 17, 2018
1 parent 033b722 commit a6f6b5b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/julia-syntax.scm
Original file line number Diff line number Diff line change
Expand Up @@ -862,6 +862,16 @@
(if (not (symbol? v))
(error (string "field name \"" (deparse v) "\" is not a symbol"))))
field-names)
(for-each (lambda (t)
(if (expr-contains-p (lambda (e)
(and (pair? e) (eq? (car e) 'call)
(expr-contains-p (lambda (a) (memq a params))
e)))
t)
(error (string "unsupported field type expression \""
(deparse t)
"\""))))
field-types)
`(block
(scope-block
(block
Expand Down

0 comments on commit a6f6b5b

Please sign in to comment.