{"action":"opened","issue":{"url":"https://api.github.com/repos/dart-lang/sdk/issues/24084","labels_url":"https://api.github.com/repos/dart-lang/sdk/issues/24084/labels{/name}","comments_url":"https://api.github.com/repos/dart-lang/sdk/issues/24084/comments","events_url":"https://api.github.com/repos/dart-lang/sdk/issues/24084/events","html_url":"https://github.com/dart-lang/sdk/issues/24084","id":100991290,"number":24084,"title":"Improve stack trace for `await for(var item in someList) {` ","user":{"login":"zoechi","id":405837,"avatar_url":"https://avatars.githubusercontent.com/u/405837?v=3","gravatar_id":"","url":"https://api.github.com/users/zoechi","html_url":"https://github.com/zoechi","followers_url":"https://api.github.com/users/zoechi/followers","following_url":"https://api.github.com/users/zoechi/following{/other_user}","gists_url":"https://api.github.com/users/zoechi/gists{/gist_id}","starred_url":"https://api.github.com/users/zoechi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zoechi/subscriptions","organizations_url":"https://api.github.com/users/zoechi/orgs","repos_url":"https://api.github.com/users/zoechi/repos","events_url":"https://api.github.com/users/zoechi/events{/privacy}","received_events_url":"https://api.github.com/users/zoechi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-14T11:12:48Z","updated_at":"2015-08-14T11:12:48Z","closed_at":null,"body":"The stack trace produced by \r\n```dart\r\nmain() {\r\n  someAsync();\r\n}\r\n\r\nsomeAsync() async {\r\n  var list = ['a', 'b', 'c'];\r\n  await for(var l in list) {\r\n    print(l);\r\n  }\r\n}\r\n```\r\ndoesn't contain the line faulty line\r\n\r\n```\r\nUnhandled exception:\r\nUncaught Error: type 'List' is not a subtype of type 'Stream' of 'stream'.\r\nStack Trace:\r\n#0      StreamIterator.StreamIterator (dart:async/stream.dart:1676)\r\n#1      someAsync.<someAsync_async_body> (file:///home/zoechi/dart/playground/server/bin/bug_report/await_for_list/main.dart)\r\n#2      Future.Future.microtask.<anonymous closure> (dart:async/future.dart:144)\r\n#3      _microtaskLoop (dart:async/schedule_microtask.dart:43)\r\n#4      _microtaskLoopEntry (dart:async/schedule_microtask.dart:52)\r\n#5      _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:96)\r\n#6      _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:149)\r\n\r\n#0      _rootHandleUncaughtError.<anonymous closure> (dart:async/zone.dart:895)\r\n#1      _microtaskLoop (dart:async/schedule_microtask.dart:43)\r\n#2      _microtaskLoopEntry (dart:async/schedule_microtask.dart:52)\r\n#3      _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:96)\r\n#4      _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:149)\r\n\r\nProcess finished with exit code 255\r\n```"}}