|
| 1 | +-- [E172] Type Error: tests/neg/i17944.scala:40:87 --------------------------------------------------------------------- |
| 2 | +40 | val s = Selector.selectorInst[("s" ->> String) *: ("i" ->> Int) *: EmptyTuple, "i"] // error |
| 3 | + | ^ |
| 4 | + |No singleton value available for Tuple.Elem[test.FindField[(("s" : String) ->> String, ("i" : String) ->> Int), ("i" : String)], (1 : Int)]; eligible singleton types for `ValueOf` synthesis include literals and stable paths. |
| 5 | + | |
| 6 | + |Note: a match type could not be fully reduced: |
| 7 | + | |
| 8 | + | trying to reduce Tuple.Elem[test.FindField[(("s" : String) ->> String, ("i" : String) ->> Int), ("i" : String)], (1 : Int)] |
| 9 | + | trying to reduce test.FindField[(("s" : String) ->> String, ("i" : String) ->> Int), ("i" : String)] |
| 10 | + | trying to reduce test.FindField0[(("s" : String) ->> String, ("i" : String) ->> Int), ("i" : String), (0 : Int)] |
| 11 | + | failed since selector (("s" : String) ->> String, ("i" : String) ->> Int) |
| 12 | + | does not match case (("i" : String) ->> f) *: _ => (f, (0 : Int)) |
| 13 | + | and cannot be shown to be disjoint from it either. |
| 14 | + | Therefore, reduction cannot advance to the remaining case |
| 15 | + | |
| 16 | + | case _ *: t => test.FindField0[t, ("i" : String), scala.compiletime.ops.int.S[(0 : Int)]] |
| 17 | + | trying to reduce test.FindField[(("s" : String) ->> String, ("i" : String) ->> Int), ("i" : String)] |
| 18 | + | trying to reduce test.FindField0[(("s" : String) ->> String, ("i" : String) ->> Int), ("i" : String), (0 : Int)] |
| 19 | + | failed since selector (("s" : String) ->> String, ("i" : String) ->> Int) |
| 20 | + | does not match case (("i" : String) ->> f) *: _ => (f, (0 : Int)) |
| 21 | + | and cannot be shown to be disjoint from it either. |
| 22 | + | Therefore, reduction cannot advance to the remaining case |
| 23 | + | |
| 24 | + | case _ *: t => test.FindField0[t, ("i" : String), scala.compiletime.ops.int.S[(0 : Int)]] |
| 25 | + | trying to reduce test.FindField0[(("s" : String) ->> String, ("i" : String) ->> Int), ("i" : String), (0 : Int)] |
| 26 | + | failed since selector (("s" : String) ->> String, ("i" : String) ->> Int) |
| 27 | + | does not match case (("i" : String) ->> f) *: _ => (f, (0 : Int)) |
| 28 | + | and cannot be shown to be disjoint from it either. |
| 29 | + | Therefore, reduction cannot advance to the remaining case |
| 30 | + | |
| 31 | + | case _ *: t => test.FindField0[t, ("i" : String), scala.compiletime.ops.int.S[(0 : Int)]] |
| 32 | + | trying to reduce test.FindField[(("s" : String) ->> String, ("i" : String) ->> Int), ("i" : String)] |
| 33 | + | trying to reduce test.FindField0[(("s" : String) ->> String, ("i" : String) ->> Int), ("i" : String), (0 : Int)] |
| 34 | + | failed since selector (("s" : String) ->> String, ("i" : String) ->> Int) |
| 35 | + | does not match case (("i" : String) ->> f) *: _ => (f, (0 : Int)) |
| 36 | + | and cannot be shown to be disjoint from it either. |
| 37 | + | Therefore, reduction cannot advance to the remaining case |
| 38 | + | |
| 39 | + | case _ *: t => test.FindField0[t, ("i" : String), scala.compiletime.ops.int.S[(0 : Int)]] |
| 40 | + | trying to reduce test.FindField0[(("s" : String) ->> String, ("i" : String) ->> Int), ("i" : String), (0 : Int)] |
| 41 | + | failed since selector (("s" : String) ->> String, ("i" : String) ->> Int) |
| 42 | + | does not match case (("i" : String) ->> f) *: _ => (f, (0 : Int)) |
| 43 | + | and cannot be shown to be disjoint from it either. |
| 44 | + | Therefore, reduction cannot advance to the remaining case |
| 45 | + | |
| 46 | + | case _ *: t => test.FindField0[t, ("i" : String), scala.compiletime.ops.int.S[(0 : Int)]] |
0 commit comments