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
Dart Editor
Version 0.1.0.201208131139, Build 10597
Dart SDK version 10595
Given the following code:
#import('dart:html');
class Ninja {
void attack() {
showMessage("My sword is deadly!");
}
}
void main() {
var ninja = new Ninja();
ninja.attackThem();
}
void showMessage(String message) {
var div = query('#text');
div.text = "${div.text} $message";
}
I would expect Dart editor to infer that ninja is of type Ninja. It should then recognize that ninja.attackThem refers to a non-existant method, and it should complain. It doesn't.
The text was updated successfully, but these errors were encountered:
This issue was originally filed by [email protected]
Dart Editor
Version 0.1.0.201208131139, Build 10597
Dart SDK version 10595
Given the following code:
#import('dart:html');
class Ninja {
void attack() {
showMessage("My sword is deadly!");
}
}
void main() {
var ninja = new Ninja();
ninja.attackThem();
}
void showMessage(String message) {
var div = query('#text');
div.text = "${div.text} $message";
}
I would expect Dart editor to infer that ninja is of type Ninja. It should then recognize that ninja.attackThem refers to a non-existant method, and it should complain. It doesn't.
The text was updated successfully, but these errors were encountered: