Adding test case for CheckEmptyStatementsTest of the LINTCHECKS pass. Part of verification/adding of ES6 module compatibility to compiler.
@@ -48,6 +48,10 @@ public class CheckEmptyStatementsTest extends CompilerTestCase {
testWarning("alert(1);;");
}
+ public void testWarning_withES6Modules01() {
+ testWarning("export function f() {};;");
+ }
+
public void testWarning_withES6Modules02() {
testWarning("export var x;;");
}
