File tree 2 files changed +1
-21
lines changed
src/com/google/javascript/jscomp
test/com/google/javascript/jscomp
2 files changed +1
-21
lines changed Original file line number Diff line number Diff line change @@ -428,15 +428,12 @@ public static DiagnosticGroup forName(String name) {
428
428
REPORT_UNKNOWN_TYPES ,
429
429
UNDEFINED_VARIABLES ,
430
430
MISSING_PROVIDE ,
431
- DiagnosticGroup .forType (FunctionTypeBuilder .RESOLVED_TAG_EMPTY ),
432
431
DiagnosticGroup .forType (MISSING_MODULE_OR_PROVIDE ),
433
432
MISSING_PROPERTIES ,
434
433
// triggered by typedefs with missing types
435
434
DUPLICATE_VARS ,
436
435
// caused by a define depending on another define that's missing
437
- DiagnosticGroup .forType (ProcessDefines .INVALID_DEFINE_VALUE ),
438
- // ES Module imports of files not reachable from this partial program.
439
- DiagnosticGroup .forType (ModuleLoader .LOAD_WARNING ));
436
+ DiagnosticGroup .forType (ProcessDefines .INVALID_DEFINE_VALUE ));
440
437
441
438
public static final DiagnosticGroup STRICT_REQUIRES =
442
439
DiagnosticGroups .registerDeprecatedGroup ("legacyGoogScopeRequire" );
Original file line number Diff line number Diff line change 22
22
23
23
import com .google .common .base .Joiner ;
24
24
import com .google .common .collect .ImmutableList ;
25
- import com .google .javascript .rhino .jstype .FunctionType ;
26
25
import com .google .javascript .rhino .jstype .JSType ;
27
26
import com .google .javascript .rhino .jstype .NamedType ;
28
27
import com .google .javascript .rhino .jstype .NoType ;
@@ -204,20 +203,4 @@ public void testUnresolvedGenerics_defined() throws Exception {
204
203
" useMissing(new some.thing.Missing());" ,
205
204
"}" );
206
205
}
207
-
208
- @ Test
209
- public void testUnresolvedBaseClassDoesNotHideFields () throws Exception {
210
- assertPartialCompilationSucceeds (
211
- "/** @constructor @extends {MissingBase} */" ,
212
- "var Klass = function () {" ,
213
- " /** @type {string} */" ,
214
- " this.foo;" ,
215
- "};" );
216
- TypedVar x = compiler .getTopScope ().getSlot ("Klass" );
217
- JSType type = x .getType ();
218
- assertThat (type .isFunctionType ()).isTrue ();
219
-
220
- FunctionType fType = (FunctionType ) type ;
221
- assertThat (fType .getTypeOfThis ().hasProperty ("foo" )).isTrue ();
222
- }
223
206
}
You can’t perform that action at this time.
0 commit comments