[Issue 24090] struct private constructor call outside module should not be allowed
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Sep 20 10:19:26 UTC 2023
https://issues.dlang.org/show_bug.cgi?id=24090
RazvanN <razvan.nitu1305 at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |razvan.nitu1305 at gmail.com
Resolution|--- |WORKSFORME
--- Comment #2 from RazvanN <razvan.nitu1305 at gmail.com> ---
I cannot reproduce this with git master.
I get:
main.d(12): Error: constructor `student.Student.this` of type `ref
Student(string _name)` is not accessible from module `main`
@Mike @Nick what compiler versions are you using?
Closing as WORKSFORME.
--
More information about the Digitalmars-d-bugs
mailing list