The getter for AppData.instance is tied to a variable that is initially null so the type is simply Object. We should change this to a method that is known to return an instance of AppData so that var will correctly infer the type. This will show us "Asynchronous function invoked in a non-'async' function" as problems.
The getter for
AppData.instance
is tied to a variable that is initially null so the type is simply Object. We should change this to a method that is known to return an instance of AppData so thatvar
will correctly infer the type. This will show us "Asynchronous function invoked in a non-'async' function" as problems.