You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What is the expected output? What do you see instead?
Inside the tooltip, I expect to see "List<String> x" but I see "var x" instead.
What version of the product are you using? On what operating system?
Version 0.1.0.201208131139, Build 10597
Dart SDK version 10595
OS X 10.6.8
The Dart community seems to be establishing a cultural norm where type annotations are used at API boundaries and not used for local variables. This works great with the Editor's local type inference option. It would be helpful to have an Editor option allowing variable tooltips to show the results of type inference. This allows some of the documentation benefits of types without cluttering code with them all the time.
Related: I've occasionally seen a variable tooltip like "var foo - instance of List<String>" but haven't been able to discern when those kinds of tooltips are shown and when they're not.
The text was updated successfully, but these errors were encountered:
This issue was originally filed by mn...@gmail.com
What steps will reproduce the problem?
void main() {
var x = foo();
print(x);
}
List<String> foo() {
return ["hello", "world"];
}
What is the expected output? What do you see instead?
Inside the tooltip, I expect to see "List<String> x" but I see "var x" instead.
What version of the product are you using? On what operating system?
Version 0.1.0.201208131139, Build 10597
Dart SDK version 10595
OS X 10.6.8
The Dart community seems to be establishing a cultural norm where type annotations are used at API boundaries and not used for local variables. This works great with the Editor's local type inference option. It would be helpful to have an Editor option allowing variable tooltips to show the results of type inference. This allows some of the documentation benefits of types without cluttering code with them all the time.
Related: I've occasionally seen a variable tooltip like "var foo - instance of List<String>" but haven't been able to discern when those kinds of tooltips are shown and when they're not.
The text was updated successfully, but these errors were encountered: