We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
As the below example shows, a method that takes a singleton type Int(1) cannot be applied with 1.
Int(1)
1
scala> def id(x: 1): 1 = x id: (x: Int(1))Int(1) scala> id(1) -- [E007] Type Mismatch Error: <console> ----------------------------------- 6 |id(1) | ^ | found: Int(1) | required: Int(1) |