We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d8a6751 + 3c88376 commit d3c1c4eCopy full SHA for d3c1c4e
tests/pos-deep-subtype/i16311.scala
@@ -0,0 +1,17 @@
1
+trait Tagged[U]
2
+type WithTag[+T, U] = T & Tagged[U]
3
+
4
+trait FromInput[Val]
5
+implicit def coercedScalaInput[T]: FromInput[WithTag[T, Int]] = ???
6
+implicit def optionInput[T](implicit ev: FromInput[T]): FromInput[Option[T]] = ???
7
8
+trait WithoutInputTypeTags[T]
9
+implicit def coercedOptArgTpe[T]: WithoutInputTypeTags[Option[WithTag[T, Int]]] = ???
10
11
+trait InputType[+T]
12
+class OptionInputType[T](ofType: InputType[T]) extends InputType[Option[T]]
13
14
+type Argument[T]
15
+def argument[T](argumentType: InputType[T])(implicit fromInput: FromInput[T], res: WithoutInputTypeTags[T]): Argument[Option[T]] = ???
16
17
+def test = argument(OptionInputType(??? : InputType[WithTag[Boolean, Int]]))
0 commit comments