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.
1 parent 56074ca commit f307da2Copy full SHA for f307da2
tests/run/implied-specifity-2.scala
@@ -36,9 +36,20 @@ class Bam(val str: String)
36
implied lo given Low for Bam("lo")
37
implied hi given High given Arg for Bam("hi")
38
39
+class Bam2(val str: String)
40
+implied lo2 given Low for Bam2("lo")
41
+implied mid2 given High given Arg for Bam2("mid")
42
+implied hi2 for Bam2("hi")
43
+
44
+class Red(val str: String)
45
+implied normal given Arg for Red("normal")
46
+implied reduced given Arg given Low for Red("reduced")
47
48
object Test extends App {
49
assert(Foo[Int] == 0)
50
assert(Foo[Bar[Int]] == 3)
51
assert(Foo[Bar[Baz]] == 5)
52
assert(the[Bam].str == "hi")
53
+ assert(the[Bam2].str == "hi")
54
+ //assert(the[Red].str == "normal")
55
}
0 commit comments