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
Add code excerpts to new type promotion failures #5359
base: main
Are you sure you want to change the base?
Conversation
I'm still not sure how to implement the excerpts for the I know there's a way to print the actual error from the excerpts too (I think the Fixing common type problems page does it), so tbd on that too. |
src/tools/non-promotion-reasons.md
Outdated
```dart | ||
import 'dart:math'; | ||
|
||
abstract class C { | ||
// ··· |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not huge fan of how this is automatically added anywhere the docregion
s end/restart in the excerpts file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can disable this by adding <?code-excerpt plaster="none"?>
to the top of the file or in the excerpt you don't want to have it:
<?code-excerpt "file.dart (region)" plaster="none"?>
Visit the preview URL for this PR (updated for commit 19f966e): |
Excerpts added in #5246
Fixes #5350