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

[SE-0326] Fix an example in the Motivation section #1465

Merged
merged 1 commit into from
Oct 22, 2021

Conversation

xedin
Copy link
Contributor

@xedin xedin commented Oct 22, 2021

map shouldn't have BinaryInteger requirement on T.
Original example had doSomething return U: BinaryInteger,
which aligned with map that returns T. After pitch the
example has been adjusted - doSomething now returns Void
which means that map with BinaryInteger requirement
wouldn't type-check.

`map` shouldn't have `BinaryInteger` requirement on `T`.
Original example had `doSomething` return `U: BinaryInteger`,
which aligned with `map` that returns `T`. After pitch the
example has been adjusted - `doSomething` now returns `Void`
which means that `map` with `BinaryInteger` requirement
wouldn't type-check.
@xedin xedin merged commit fb5a22c into swiftlang:main Oct 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant