Stream: beginners

Topic: Unused Definiton - Question regarding new compiler behaviour


view this post on Zulip Tobias Steckenborn (Jul 08 2025 at 16:49):

Currently it seems like just writing a test / expect for a definition suppresses the unused definition warning. Is that the intended behavior or is that likely to change? I personally think it should still warn on that and only stop on actual usage, not tests covering it.

view this post on Zulip Anton (Jul 08 2025 at 17:32):

I personally think it should still warn on that

Yeah, that makes sense, I'll make an issue for that. We can always close it if someone comes with a convincing opposing argument.

view this post on Zulip Anton (Jul 08 2025 at 17:33):

We already have an issue :)
#3238

view this post on Zulip Kilian Vounckx (Jul 08 2025 at 19:38):

I have thought about it as well. But sometimes you need a helper function for testing only


Last updated: Jul 26 2025 at 12:14 UTC