mirror of
https://github.com/cincheo/jsweet.git
synced 2025-12-15 15:29:22 +00:00
still report other errors when superclass is found for Globals
This commit is contained in:
parent
04cbc101ac
commit
f647af31e6
@ -495,7 +495,6 @@ public class Java2TypeScriptTranslator extends AbstractTreePrinter {
|
||||
boolean globals = JSweetConfig.GLOBALS_CLASS_NAME.equals(classdecl.name.toString());
|
||||
if (globals && classdecl.extending != null) {
|
||||
report(classdecl, JSweetProblem.GLOBALS_CLASS_CANNOT_HAVE_SUPERCLASS);
|
||||
return;
|
||||
}
|
||||
if (!globals) {
|
||||
if (classdecl.extending != null && JSweetConfig.GLOBALS_CLASS_NAME.equals(classdecl.extending.type.tsym.getSimpleName().toString())) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user