We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19bdc68 commit a272807Copy full SHA for a272807
spec/struct.dd
@@ -660,6 +660,19 @@ void main()
660
---
661
)
662
663
+ $(P Postblits are not overloadable. If 2 postblits are defined,
664
+ even if the signatures differ, the compiler will assign the
665
+ `__postblit` name to both and later issue a conflicting function
666
+ name error:)
667
+
668
+---
669
+struct X
670
+{
671
+ this(this) {}
672
+ this(this) const {} // error: function X.__postblit conflicts with function X.__postblit
673
+}
674
675
676
$(P Unions may not have fields that have postblits.)
677
678
$(H2 $(LEGACY_LNAME2 StructDestructor, struct-destructor, Struct Destructors))
0 commit comments