Skip to content

Returning a different class in #[new] method #2801

Answered by davidhewitt
benruijl asked this question in Questions
Discussion options

You must be logged in to vote

This fits with #2384 - currently #[new] assumes you want to build a new object of Self type each time, but really we should relax this restriction (just needs someone to work out the implementation).

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by benruijl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants