Skip to content

Conversation

slavapestov
Copy link
Contributor

To hack around the ConstructorDecl behavior, add a withCovariantResultType() that instead sticks a DynamicSelfType in the right place, and only if its a class constructor.

@slavapestov slavapestov marked this pull request as draft August 21, 2025 20:30
@slavapestov slavapestov force-pushed the covariant-result-type-part-2 branch 2 times, most recently from 8a431d9 to 8504689 Compare August 23, 2025 03:34
@slavapestov slavapestov changed the title AST: Finish removing replaceCovariantResultType() AST: Continue process of removing replaceCovariantResultType() Aug 27, 2025
@slavapestov slavapestov force-pushed the covariant-result-type-part-2 branch from 8504689 to a7d12e7 Compare August 27, 2025 19:35
@slavapestov slavapestov marked this pull request as ready for review August 27, 2025 19:35
@slavapestov
Copy link
Contributor Author

@swift-ci Please smoke test

@slavapestov
Copy link
Contributor Author

@swift-ci Please test Linux

@slavapestov
Copy link
Contributor Author

@swift-ci Please test source compatibility

@slavapestov slavapestov merged commit a5a8cf4 into swiftlang:main Aug 28, 2025
4 of 6 checks passed
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.

1 participant