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.
class Foo[T](val value : T) {type Out = T} object Foo { def fromXInt[T <: Int with Singleton](i : T): Foo[T] = new Foo[T](i) } val f1 = Foo.fromXInt(1)
8 | val f1 = Foo.fromXInt(1) | ^ | Type argument Int does not conform to upper bound Int & Singleton