-
Notifications
You must be signed in to change notification settings - Fork 830
Improve type error ranges in computed collections #15381
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
Conversation
|
|
|
|
|
On an unrelated note, not sure if this is an inherent limitation of implicit yields or just an oversight: > let y = [ yield 1L; if true then yield 2 ];;
val y: int64 list = [1L; 2L]
> let y = [ 1L; if true then 2 ];;
let y = [ 1L; if true then 2 ];;
--------^^^^^^^^^^^^^^^^^^^^^^
stdin(6,9): error FS0193: Type constraint mismatch. The type
'int'
is not compatible with type
'int64' |
|
Thanks @kerams, with PRs like this it really feels like we are cutting off all the rough edges in the language and it's nearing perfection :) |
I think it's an oversight when we were doing implicit conversions. |
Fixes #15361, fixes #7670.
Before and after