Closed
Description
This issue was originally filed by olov.lassu...@gmail.com
Reduced test-case (run in VM with type-checking disabled):
class C {
toDouble() => 0;
}
main() {
print(2.2 + new C());
}
This is what happens:
~/projects/dart/dart % dart --enable_asserts toDoubleBug.dart
./vm/object.h:2201: error: Handle check failed.
zsh: abort dart --enable_asserts toDoubleBug.dart
What should happen:
Not sure (not crash obviously). Checked mode complains (Failed type check: type C is not assignable to type num of other in bootstrap_impl at line 898, column 25.) but it's not clear to me how toDouble is supposed to be used or not currently.
Stack trace: