-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VM doesn't recognize implicit class interfaces #1971
Comments
Removed the owner. |
Issue #1977 has been merged into this issue. |
This comment was originally written by [email protected] Is it extends or implements. I see a different notation in language tour section. class SmartTelevision extends Television |
Shiv is talking about http://www.dartlang.org/language-tour/#classes Shiv, this bug is talking about something different. The Television example in the Language Tour is referring to classical class inheritance. Sorry for the confusion. |
Hi Shiv, The best place for questions about the language would be our mailing list: https://groups.google.com/a/dartlang.org/forum/#!forum/misc Hope to see you there, |
This example works in Dartboard:
class Duck {
quack() => 'complicated enterprise n-tier quack';
}
class MockDuck implements Duck {
quack() => 'quack for testing';
}
main() {
var mock = new MockDuck();
print(mock is Duck); // true!
}
however, when executed via the VM, this error is generated:
Error: line 5 pos 7: class 'Duck' is used where an interface is expected
class MockDuck implements Duck {
(The Editor doesn't indicate any warnings)
Not sure if it's a Dartboard error or a VM error.
The text was updated successfully, but these errors were encountered: