Skip to content

Commit

Permalink
Fixing bug with NocollapseInExterns with ES6 modules in CheckJSDoc pass.
Browse files Browse the repository at this point in the history
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=160008628
  • Loading branch information
hjkaria authored and brad4d committed Jun 26, 2017
1 parent 24703f9 commit 5e037ee
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions test/com/google/javascript/jscomp/CheckJsDocTest.java
Expand Up @@ -535,8 +535,14 @@ public void testMisplacedNocollapseAnnotation_withES6Modules() {
}

public void testNocollapseInExterns() {
testSame("var foo = {}; /** @nocollapse */ foo.bar = true;",
"foo.bar;", MISPLACED_ANNOTATION);
testSame("var foo = {}; /** @nocollapse */ foo.bar = true;", "foo.bar;", MISPLACED_ANNOTATION);
}

public void testNocollapseInExterns_withES6Modules() {
testSame(
"export var foo = {}; /** @nocollapse */ foo.bar = true;",
"foo.bar;",
MISPLACED_ANNOTATION);
}

public void testArrowFuncAsConstructor() {
Expand Down

0 comments on commit 5e037ee

Please sign in to comment.