Frontend: Constant evaluation allows extension methods. #39146
Labels
area-front-end
Use area-front-end for front end / CFE / kernel format related issues.
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
Example:
The front-end constant evaluator does not catch that we try to invoke an extension member here, but instead crashes. Backends report this crash, here the VM:
The constant evaluator should not allow
~
to be used in constant expression except when invoking the instance member~
ofint
.The specification is being updated to specify this clearly, but it has always been the intention that user code invocations cannot occur in constant expressions.
The text was updated successfully, but these errors were encountered: