Skip to content

feat: Add NestedHandlerTest to validate Nested behavior and enhance A…#1493

Open
ahoy-jon wants to merge 7 commits intomainfrom
1412-bug-freeze-on-unnecessary-handling-for-var
Open

feat: Add NestedHandlerTest to validate Nested behavior and enhance A…#1493
ahoy-jon wants to merge 7 commits intomainfrom
1412-bug-freeze-on-unnecessary-handling-for-var

Conversation

@ahoy-jon
Copy link
Copy Markdown
Collaborator

Quick proposal,

Fix for #1412

@ahoy-jon ahoy-jon linked an issue Mar 23, 2026 that may be closed by this pull request
@ahoy-jon ahoy-jon force-pushed the 1412-bug-freeze-on-unnecessary-handling-for-var branch from 08f4178 to ffcd186 Compare March 23, 2026 22:54
@ahoy-jon ahoy-jon requested a review from hearnadam March 23, 2026 22:54
@ahoy-jon ahoy-jon force-pushed the 1412-bug-freeze-on-unnecessary-handling-for-var branch from ffcd186 to 78267fd Compare March 23, 2026 23:53
@ahoy-jon ahoy-jon force-pushed the 1412-bug-freeze-on-unnecessary-handling-for-var branch from 78267fd to 857eefc Compare March 24, 2026 00:57

def flatten[A, B, C](v: A < B < C): A < (B & C) = v.map(a => a)

"handle on Nested (unsafeGet path)" - {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"handle on Nested (unsafeGet path)" - {
"not handle Nested" - {

import kyo.kernel.*
import kyo.kernel.internal.*

class ArrowEffectNestedTest extends Test:
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe this belongs in ArrowEffect as a nested Suite?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed. Let's avoid creating ad-hoc test classes, test files should have corresponding source files.

end new
case kyo =>
kyo.asInstanceOf[A]
kyo.unsafeGet
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice catch!

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.

[BUG]: Freeze on unnecessary handling for Var

3 participants