sdk icon indicating copy to clipboard operation
sdk copied to clipboard

[analyzer] Report a compile-time error when an expression of type `void` is used

Open eernstg opened this issue 1 year ago • 5 comments

This is the analyzer specific issue for https://github.com/dart-lang/sdk/issues/54889, which has the details.

eernstg avatar Feb 12 '24 12:02 eernstg

@scheglov

bwilkerson avatar Feb 12 '24 17:02 bwilkerson

@scheglov and @pq, this turns out to potentially need a breaking change process, so please do not proceed to work on the implementation at this time.

I've added a 'status-blocked' label to make this situation visible. I'll remove it again if and when the breaking change is approved. The description of the changes may be modified during this breaking change process.

I hope this bad ordering of events did not disrupt your work.

eernstg avatar Feb 14 '24 16:02 eernstg

image

scheglov avatar Feb 14 '24 17:02 scheglov

(I can't read Russian, but I get the point :grin:)

lrhn avatar Feb 14 '24 17:02 lrhn

Me either, so I used Google Lens to translate it. Not sure how well Lens did :-), but I also got the point.

bwilkerson avatar Feb 14 '24 17:02 bwilkerson

Closing: Various adjustments of the test (including corrections of mistakes introduced by the migration from a //# ... multi test to a modern // ^^^ test) have eliminated all test failures with the analyzer.

:tada:

eernstg avatar Feb 27 '24 11:02 eernstg