Skip to content

Commit

Permalink
use Any for default inner constructor argument types. closes #4026
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffBezanson committed Dec 20, 2013
1 parent 06458fa commit d7d671d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/julia-syntax.scm
Original file line number Diff line number Diff line change
Expand Up @@ -654,8 +654,7 @@

(define (default-inner-ctor name field-names field-types)
(let ((field-names (safe-field-names field-names field-types)))
`(function (call ,name
,@(map make-decl field-names field-types))
`(function (call ,name ,@field-names)
(block
(call new ,@field-names)))))

Expand Down

0 comments on commit d7d671d

Please sign in to comment.