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

Dart VM List.add should return void but returns int (array size) #1213

Closed
DartBot opened this issue Jan 18, 2012 · 3 comments
Closed

Dart VM List.add should return void but returns int (array size) #1213

DartBot opened this issue Jan 18, 2012 · 3 comments
Labels
area-vm Use area-vm for VM related issues, including code coverage, FFI, and the AOT and JIT backends.

Comments

@DartBot
Copy link

DartBot commented Jan 18, 2012

This issue was originally filed by @butlermatt


Dart library reference indicates that List.add has a void return type. However it currently returns the new array size in the Dart VM. dartboard shows correct results.

eg:

main() {
  var list = new List();
  var x = list.add('foo');
  print(x);
}

Output: 1

Expected null.

@dgrove
Copy link
Contributor

dgrove commented Jan 19, 2012

Added Area-VM, Triaged labels.

@ghost
Copy link

ghost commented Jan 31, 2012

Set owner to @sgmitrovic.

@ghost
Copy link

ghost commented Feb 22, 2012

Added Fixed label.

@DartBot DartBot added Type-Defect area-vm Use area-vm for VM related issues, including code coverage, FFI, and the AOT and JIT backends. labels Feb 22, 2012
@DartBot DartBot assigned ghost Feb 22, 2012
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-vm Use area-vm for VM related issues, including code coverage, FFI, and the AOT and JIT backends.
Projects
None yet
Development

No branches or pull requests

2 participants