this.type
in function types is sometimes misinterpreted to mean "this function" instead of "this class", leading to crash with infinite recursive type
#23111
Labels
Compiler version
3.7.1-RC1
Minimized code
This fails with a reasonable error:
... but if I replace
A.this.type
bythis.type
, things go crazy:Expectation
Clearly
this.type
refers toA.this.type
here, so the two pieces of code should behave in the same way, and not attempt to create an infinitely recursive type.The text was updated successfully, but these errors were encountered: