Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix #29064, bug in field name same as struct type name #29070

Merged
merged 1 commit into from
Sep 7, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/julia-syntax.scm
Original file line number Diff line number Diff line change
Expand Up @@ -692,7 +692,7 @@
,@(map make-decl field-names field-types))
(block
,@locs
(new ,name ,@field-names))))
(new (outerref ,name) ,@field-names))))
any-ctor)
(list any-ctor))))

Expand Down
6 changes: 6 additions & 0 deletions test/syntax.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1502,6 +1502,12 @@ function test27710()
end
@test test27710() === Int64

# issue #29064
struct X29064
X29064::Int
end
@test X29064(1) isa X29064

# issue #27268
function f27268()
g(col::AbstractArray{<:Real}) = col
Expand Down