-
Notifications
You must be signed in to change notification settings - Fork 831
Disallow calling abstract methods directly on interfaces #17021
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
Changes from 14 commits
79df557
d8bbd0f
d8d9062
b542709
7fa7b8f
7fa370b
ce7acc2
9ecd812
1fc2c73
cccb6c7
f1310d5
604ba02
888382b
df5d20e
5154ae8
fe85336
968fe31
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,5 @@ | ||
| ### Fixed | ||
|
|
||
| Various parenthesization API fixes. ([PR #16977](https://github.com/dotnet/fsharp/pull/16977)) | ||
| * Disallow calling abstract methods directly on interfaces. ([PR #17021](https://github.com/dotnet/fsharp/pull/17021)) | ||
| * Various parenthesization API fixes. ([PR #16977](https://github.com/dotnet/fsharp/pull/16977)) | ||
| * Fix bug in optimization of for-loops over integral ranges with steps and units of measure. ([Issue #17025](https://github.com/dotnet/fsharp/issues/17025), [PR #17040](https://github.com/dotnet/fsharp/pull/17040)) | ||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| #nowarn "64" | ||
| open System | ||
| open System.Numerics | ||
|
|
||
| module ConstrainedCall = | ||
| let ``'T.op_Addition``<'T & #IAdditionOperators<'T, 'T, 'T>> x y = 'T.op_Addition (x, y) | ||
| let ``'T.(+)``<'T & #IAdditionOperators<'T, 'T, 'T>> x y = 'T.(+) (x, y) | ||
| let ``'T.op_CheckedAddition``<'T & #IAdditionOperators<'T, 'T, 'T>> x y = 'T.op_CheckedAddition (x, y) | ||
| let ``'T.Parse``<'T & #IParsable<'T>> x = 'T.Parse (x, null) | ||
|
|
||
| module InterfaceCall = | ||
| let ``IAdditionOperators.op_Addition`` x y = IAdditionOperators.op_Addition (x, y) | ||
| let ``IAdditionOperators.(+)`` x y = IAdditionOperators.(+) (x, y) | ||
| let ``IAdditionOperators.op_CheckedAddition`` x y = IAdditionOperators.op_CheckedAddition (x, y) | ||
| let ``IParsable.Parse``<'T & #IParsable<'T>> x : 'T = IParsable.Parse (x, null) | ||
|
|
Uh oh!
There was an error while loading. Please reload this page.