mirror of
https://github.com/cincheo/jsweet.git
synced 2025-12-15 15:29:22 +00:00
relax constructor constraint within declarations
This commit is contained in:
parent
05c06ccb75
commit
62546dd336
@ -2092,7 +2092,7 @@ public class Java2TypeScriptTranslator extends AbstractTreePrinter {
|
||||
print(";");
|
||||
}
|
||||
} else {
|
||||
if (getScope().interfaceScope) {
|
||||
if (!getScope().declareClassScope && getScope().interfaceScope) {
|
||||
if (!methodDecl.mods.getFlags().contains(Modifier.STATIC)) {
|
||||
report(methodDecl, methodDecl.name, JSweetProblem.INVALID_METHOD_BODY_IN_INTERFACE, methodDecl.name,
|
||||
parent == null ? "<no class>" : parent.name);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user