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

use convert(T,x)::T for all declared return types #18899

Merged
merged 1 commit into from Oct 13, 2016

Conversation

JeffBezanson
Copy link
Sponsor Member

before, the type assert was not included for short functions

before, the type assert was not included for short functions
@JeffBezanson JeffBezanson added compiler:lowering Syntax lowering (compiler front end, 2nd stage) backport pending 0.5 kind:bugfix This change fixes an existing bug labels Oct 13, 2016
@StefanKarpinski
Copy link
Sponsor Member

Is this really backportable? This will pretty clearly potentially break someone's code if they were relying on convert(T,x) returning something not of type T.

@vtjnash
Copy link
Sponsor Member

vtjnash commented Oct 13, 2016

Yes. This was a bug with one of the code paths (for short functions); the primary code path (for functions that it decided it couldn't optimize this way) has this typeassert.

@JeffBezanson JeffBezanson merged commit 3b5c975 into master Oct 13, 2016
@stevengj stevengj deleted the jb/rettype_assert branch October 13, 2016 15:54
tkelman pushed a commit that referenced this pull request Feb 22, 2017
before, the type assert was not included for short functions

(cherry picked from commit 66f5abf)
ref #18899
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler:lowering Syntax lowering (compiler front end, 2nd stage) kind:bugfix This change fixes an existing bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants