CFE does not report an error when new
is used in a non-constructor position with constructor tearoffs enabled
#47075
Labels
legacy-area-front-end
Legacy: Use area-dart-model instead.
With constructor tearoffs enabled, the CFE correctly emits an error on the definition of the field in
C
in the code below, but issues no errors on the access ofnew
on an instance ofC
and onfoo
inmain
. I believe that all of those should be an error. This causes a failure inco19/Language/Expressions/Instance_Creation/New/type_t05
(source here) when constructor tearoffs are enabled. See logs here . CL turning on the flag is here.cc @eernstg @lrhn @johnniwinther @devoncarew
The text was updated successfully, but these errors were encountered: