Skip to content

(1, x => 2): (Int, Int => Int) fails type checking the _2 #1378

Closed
@nicolasstucki

Description

@nicolasstucki
dotty> (1, x => 2): (Int, Int => Int) 
    ^
(1, x => 2): (Int, Int => Int)
<console>:5: error: missing parameter type for parameter x, expected = T2
scala> (1, x => 2): (Int, Int => Int)
res0: (Int, Int => Int) = (1,<function1>)

This issue is related to #1366 and is probably a further refinement of fix #1371.

This code was executed with #1371.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions