Skip to content

[SE-0328] Enable structural opaque result types. #40361

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

Merged
merged 2 commits into from
Dec 2, 2021

Conversation

hborla
Copy link
Member

@hborla hborla commented Dec 1, 2021

  • Enable structural opaque types by default
  • Remove the -enable-experimental-structural-opaque-types frontend flag
  • Ban opaque types in parameter position, per the acceptance decision of SE-0328. Note that this restriction applies to some appearing anywhere in the parameter type, including positions that do not consume values from the caller, e.g. func test() -> ((some P) -> Void) -> Void { ... }

Resolves: rdar://85275081

@hborla hborla requested a review from slavapestov December 1, 2021 23:08
@hborla
Copy link
Member Author

hborla commented Dec 2, 2021

@swift-ci please smoke test

@hborla
Copy link
Member Author

hborla commented Dec 2, 2021

@swift-ci please smoke test Linux platform

@hborla
Copy link
Member Author

hborla commented Dec 2, 2021

@swift-ci please test Windows platform

1 similar comment
@hborla
Copy link
Member Author

hborla commented Dec 2, 2021

@swift-ci please test Windows platform

@hborla
Copy link
Member Author

hborla commented Dec 2, 2021

Failed Tests (1):
  Swift(windows-x86_64) :: Serialization/path_obfuscator.swift

Windows test failure will be fixed by this revert: #40368

@hborla
Copy link
Member Author

hborla commented Dec 2, 2021

@swift-ci please test Windows platform

@hborla hborla merged commit 47b375f into swiftlang:main Dec 2, 2021
@hborla hborla deleted the enable-structural-opaque-types branch December 2, 2021 23:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants