Skip to content

Union inference regression in 3.1.2 #15460

Closed
@unthingable

Description

@unthingable
type C = Function0[Int] | Function0[String]

def foo(c: C): Unit = ()

foo(() => 1)

Output

3.1.1:
image
3.1.2:
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    itype:bugregressionThis worked in a previous version but doesn't anymore

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions