Skip to content

Commit 15049ed

Browse files
tbreisacherlauraharker
authored andcommitted
Fix unused variable warnings
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=191483893
1 parent d06f0f0 commit 15049ed

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2334,6 +2334,8 @@ public void testIgnoreSpecializedProperties() {
23342334
" this.Bar$a = 3;",
23352335
" this.Bar$b = 2;",
23362336
"}");
2337+
2338+
test(srcs(js), expected(output));
23372339
}
23382340

23392341
public void testIgnoreSpecializedProperties2() {
@@ -2384,6 +2386,9 @@ public void testIgnoreSpecializedProperties2() {
23842386
"function Foo() {",
23852387
" this.Foo$num = 123;",
23862388
"}");
2389+
2390+
this.mode = TypeInferenceMode.NTI_ONLY;
2391+
testSets("", js, ntiOutput, "{num=[[Foo], [function(): undefined]]}");
23872392
}
23882393

23892394
public void testIgnoreSpecializedProperties3() {
@@ -2416,6 +2421,8 @@ public void testIgnoreSpecializedProperties3() {
24162421
"function Bar() {",
24172422
" this.Bar$num = 123;",
24182423
"}");
2424+
2425+
test(srcs(js), expected(output));
24192426
}
24202427

24212428
public void testErrorOnProtectedProperty() {

0 commit comments

Comments
 (0)