Skip to content

Add convenience initializer for ReturnClause #345

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

kimdv
Copy link
Contributor

@kimdv kimdv commented Nov 29, 2021

No description provided.

@kimdv kimdv requested a review from ahoppen November 29, 2021 20:37

import SwiftSyntax

extension ReturnClause: ExpressibleByStringLiteral {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we actually need the ExpressibleByStringLiteral conformance? IIUC we should be able to use Strings for binary operators in all relevant places because we have String: ExpressibleAsReturnClause .

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

@kimdv kimdv force-pushed the kimdv/add-convenience-initializer-for-return-clause branch from 5ad7814 to 7e21e62 Compare December 1, 2021 18:47
@kimdv kimdv force-pushed the kimdv/add-convenience-initializer-for-return-clause branch from 7e21e62 to 39e9447 Compare December 2, 2021 06:43
@kimdv
Copy link
Contributor Author

kimdv commented Dec 2, 2021

@swift-ci Please test

@kimdv kimdv merged commit 90f285c into swiftlang:main Dec 2, 2021
@kimdv kimdv deleted the kimdv/add-convenience-initializer-for-return-clause branch February 19, 2022 14:15
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