Skip to content

Commit 1b31a90

Browse files
rishipalcopybara-github
authored andcommitted
Internal change
PiperOrigin-RevId: 619207099
1 parent d39a1ab commit 1b31a90

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/com/google/javascript/jscomp/CollapseAnonymousFunctionsTest.java

+5
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@ public void testGlobalScope() {
4242
test("var f = function(){}", "function f(){}");
4343
}
4444

45+
@Test
46+
public void testSeparateDeclarationAndInitilization_unchanged() {
47+
testSame("var f; f = function(){}");
48+
}
49+
4550
@Test
4651
public void testLocalScope1() {
4752
test("function f(){ var x = function(){}; x() }", "function f(){ function x(){} x() }");

0 commit comments

Comments
 (0)