Hello, I am trying to the give the "Object" semantics to all dynamic types (dynamic annotation, use of var, missing annotation) in dartanalyzer, but I don't know how to do.
For example,
class C {
m1(x) {
x.foo;
}
void m2() {
m1(10).doSomething();
}
}
Despite this program does not produce any type warning I would like the analyzer say something like
[warning] foo is not a property of the class Object
[warning] doSomething is not a method in the class Object
In essence, I would like to turn all the missing type annotation, dynamic annotations and var into Object in the AST nodes, or somehow instruct the analyzer that x has type Object and m1 has Object return type.
Is there an easy way to do that?
Thanks in advance.