Skip to content

Conversation

lihaoyi
Copy link
Member

@lihaoyi lihaoyi commented Jul 27, 2025

Fixes #252

The problem is that when the last test{} block has the return type of String, it picks the overload returning utest.Apply, and then wraps it in a block to insert a () after it. The fix is to identify this pattern and unwind it so it is treated as a normal statement

Also added some tests for this and #390

@lihaoyi lihaoyi merged commit f359abc into master Jul 27, 2025
3 of 4 checks passed
@lihaoyi lihaoyi deleted the missing-last-test branch July 27, 2025 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Missing test run?
1 participant