Skip to content

[BUG]: Freeze on unnecessary handling for Var #1412

@ahoy-jon

Description

@ahoy-jon

Version

1.0-RC1

Scala Version

3.7.2

Expected Behavior

val oups: Unit < (Sync & Var[Int]) =
  Var.update[Int](_ + 1).map(i => Console.printLine(s"oups $i"))

val lifted: Unit < (Sync & Var[Int]) < Any = Kyo.lift(oups)

object Weird extends KyoApp:
  lifted.handle(
    Var.run(0), // make the program freeze
    _.flatten,
    Var.run(0),
    run
  )

should not freeze

Actual Behavior

it Freezes

Steps to Reproduce

No response

Current Workaround

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions