Skip to content

Conversation

@Mynyx
Copy link
Contributor

@Mynyx Mynyx commented Feb 8, 2026

Constructor property promotion requires a property visibility definition.

@carsonbot carsonbot changed the title Fix example in autowiring.rst Fix example in autowiring.rst Feb 8, 2026
@OskarStark
Copy link
Contributor

Not sure CPP is needed here

@Mynyx
Copy link
Contributor Author

Mynyx commented Feb 8, 2026

The constructor is empty and the other examples also include CPP.

@OskarStark
Copy link
Contributor

I agree the ctor is empty makes it useless, but when we change this line, it would showcase that you can use these attributes without being forced to use CPP, no?

Comment on lines 617 to 618
}
// ...
Copy link
Contributor

Choose a reason for hiding this comment

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

Move this line into the ctor body

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants