Cannot check the isFunctionType on null
Closes
@@ -260,12 +260,12 @@ class TypedCodeGenerator extends CodeGenerator {
}
private String getClassAnnotation(JSType classType) {
- checkState(classType.isFunctionType(), classType);
-
if (classType == null || classType.isUnknownType()) {
return "";
}
+ checkState(classType.isFunctionType(), classType);
+
FunctionType funType = classType.toMaybeFunctionType();
StringBuilder sb = new StringBuilder();
