Skip to content

Commit

Permalink
Revert "fix #16153, method sorting of {Any,} vs. {ANY, Any...}"
Browse files Browse the repository at this point in the history
This reverts commit 61073c3.
  • Loading branch information
JeffBezanson committed May 3, 2016
1 parent 61073c3 commit a424eec
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
2 changes: 0 additions & 2 deletions src/jltypes.c
Original file line number Diff line number Diff line change
Expand Up @@ -2737,8 +2737,6 @@ static int jl_type_morespecific_(jl_value_t *a, jl_value_t *b, int invariant)
}
}

if (a == jl_ANY_flag) return 0;

if (jl_is_uniontype(b)) {
if (invariant)
return 0;
Expand Down
5 changes: 0 additions & 5 deletions test/core.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3887,8 +3887,3 @@ function f16158(x)
bar(x)
end
@test f16158("abc") == "abcaba"

# issue #16153
f16153(x) = 1
f16153(x::ANY, y...) = 2
@test f16153("") == 1

0 comments on commit a424eec

Please sign in to comment.