need flag to enable CompilerOptions.setAssumeStaticInheritanceRequired(true)
#3559
Labels
CompilerOptions.setAssumeStaticInheritanceRequired(true)
#3559
To avoid compilation breaking uses of
this
andsuper
in static methods of ES6 classes, you have to getCommandLineRunner
to doCompilerOptions.setAssumeStaticInheritanceRequired(true)
when creating theCompiler
object.Unfortunately, there is no flag for this yet, and we can't make it the default behavior because of increase in output code size it causes for Google projects.
This would be a good community-volunteer thing to do.
The text was updated successfully, but these errors were encountered: