Skip to content
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

error in handling of "+" in presence of operator overloading #576

Closed
dgrove opened this issue Nov 23, 2011 · 2 comments
Closed

error in handling of "+" in presence of operator overloading #576

dgrove opened this issue Nov 23, 2011 · 2 comments
Labels
P1 A high priority bug; for example, a single project is unusable or has many test failures

Comments

@dgrove
Copy link
Contributor

dgrove commented Nov 23, 2011

@r1752:

> cat frog-test.dart
var i = "7";
var s = 9;
main() {
 print(i+s);
}

class foo {
 operator+(foo x) => (x + 1);
}

> ./frogsh frog-test.dart

node.js:134
        throw e; // process.nextTick error, or 'error' event on first tick
        ^
TypeError: Object 7 has no method '$add'
    at $add (evalmachine.<anonymous>:6:17)
    at main (evalmachine.<anonymous>:42:9)
    at evalmachine.<anonymous>:51:1
    at main (/Users/dgrove/repo/dart-bleeding/dart/frog/frogsh:22959:10)
    at Object.<anonymous> (/Users/dgrove/repo/dart-bleeding/dart/frog/frogsh:23295:1)

> ../xcodebuild/Release_ia32/dart frog-test.dart
79

@DartBot
Copy link

DartBot commented Nov 23, 2011

This comment was originally written by jimhug@google.com


Set owner to jimhug@google.com.
Added Started label.

@DartBot
Copy link

DartBot commented Nov 23, 2011

This comment was originally written by jimhug@google.com


http://codereview.chromium.org/8677018/


Added Fixed label.

@dgrove dgrove added Type-Defect P1 A high priority bug; for example, a single project is unusable or has many test failures labels Nov 23, 2011
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P1 A high priority bug; for example, a single project is unusable or has many test failures
Projects
None yet
Development

No branches or pull requests

2 participants