-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Labels
area:documentationarea:specificationAbout the WIP Scala 3 SpecAbout the WIP Scala 3 Specitype:question
Description
Compiler version
3.4.2
Minimized code
File1:
def foo() =
(x: Int) ?=> x + 1
File2:
def foo() =
println()
(x: Int) ?=> x + 1
Output
File1: no error
File2:
-- [E172] Type Error: Main.scala:3:20 ------------------------------------------
3 | (x: Int) ?=> x + 1
| ^
| No given instance of type Int was found for parameter of (Int) ?=> Int
1 error found
Expectation
Both files should compile. Or both files should fail to compile.
Metadata
Metadata
Assignees
Labels
area:documentationarea:specificationAbout the WIP Scala 3 SpecAbout the WIP Scala 3 Specitype:question