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

improve apply_type error message #42422

Merged
merged 1 commit into from
Sep 30, 2021
Merged

improve apply_type error message #42422

merged 1 commit into from
Sep 30, 2021

Conversation

vtjnash
Copy link
Member

@vtjnash vtjnash commented Sep 29, 2021

Fixes #42401

@vtjnash vtjnash added the backport 1.6 Change should be backported to release-1.6 label Sep 29, 2021
@JeffBezanson JeffBezanson added the error messages Better, more actionable error messages label Sep 29, 2021
@vtjnash vtjnash merged commit 00a602b into master Sep 30, 2021
@vtjnash vtjnash deleted the jn/42401 branch September 30, 2021 17:10
@vtjnash
Copy link
Member Author

vtjnash commented Sep 30, 2021

Ah, wait, was this a bad idea:

julia> struct X{T, A<:T} end

julia> X{1, 1}
ERROR: TypeError: in TypeVar, in upper bound, expected Type, got a value of type Int64
Stacktrace:
 [1] top-level scope
   @ REPL[2]:1

previously:

julia> X{1, 1}
ERROR: TypeError: in X, in A, expected A<:T, got a value of type Int64
Stacktrace:
 [1] top-level scope
   @ REPL[2]:1

KristofferC pushed a commit that referenced this pull request Oct 19, 2021
KristofferC added a commit that referenced this pull request Oct 29, 2021
@KristofferC KristofferC removed the backport 1.6 Change should be backported to release-1.6 label Oct 29, 2021
KristofferC pushed a commit that referenced this pull request Nov 11, 2021
KristofferC added a commit that referenced this pull request Nov 11, 2021
LilithHafner pushed a commit to LilithHafner/julia that referenced this pull request Feb 22, 2022
LilithHafner pushed a commit to LilithHafner/julia that referenced this pull request Mar 8, 2022
staticfloat pushed a commit that referenced this pull request Dec 23, 2022
staticfloat pushed a commit that referenced this pull request Dec 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
error messages Better, more actionable error messages
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error message does not indicate conflicting type parameters
3 participants