Allow private constructors to be called from within inline/macro #17805
markehammons
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When trying to write a macro apply method, I ran into the error
Implementation restriction: cannot use private constructors in inlineinline methods
This restriction is quite silly, as it's very easy to bypass by adding a private method to the same object that calls the private constructor for the macro.
Beta Was this translation helpful? Give feedback.
All reactions