Closed
Description
If I run the analyzer over the following code in strong mode:
void fn/*<T>*/(/*=T*/ object) {
if (object is String) print(object.substring(1));
}
I get the error "The method 'substring' is not defined for the class 'Object'.". This seems incorrect, since I'm asserting that object is String
immediately before calling substring()
.