Description
I first saw this while debugging dart-lang/dartdoc#2143. The example I found is in dart:html
, whose source code is copied directly from: https://github.com/dart-lang/sdk/blob/master/sdk/lib/html/dart2js/html_dart2js.dart. It reexports promiseToFuture
from dart:html_common
, which isn't available in sky_engine.
I do not understand how Flutter can possibly work under these conditions (Why are there no compilation errors? Why are all analysis errors here always squelched?) but it clearly does.... so I'm filing this issue in part to ask:
- Is this an actual problem (meaning, it is a bug that all of our tools seem to ignore this situation), or are situations like this considered "normal"?
- If it isn't a problem, is ignoring this situation in tools the correct way to handle it? Or should we be working around this in a different way?
For example, a combination of factors tend to result in dartdoc and the analyzer ignoring this under most circumstances and just silently hiding things. You'll notice that in the documentation for dart:html
at https://api.dart.dev/dev/2.8.0-dev.20.0/dart-html/dart-html-library.html includes promiseToFuture
, but https://api.flutter.dev/flutter/dart-html/dart-html-library.html does not.