Skip to content

Commit f307da2

Browse files
committed
Add test cases
1 parent 56074ca commit f307da2

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/run/implied-specifity-2.scala

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,20 @@ class Bam(val str: String)
3636
implied lo given Low for Bam("lo")
3737
implied hi given High given Arg for Bam("hi")
3838

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+
3948
object Test extends App {
4049
assert(Foo[Int] == 0)
4150
assert(Foo[Bar[Int]] == 3)
4251
assert(Foo[Bar[Baz]] == 5)
4352
assert(the[Bam].str == "hi")
53+
assert(the[Bam2].str == "hi")
54+
//assert(the[Red].str == "normal")
4455
}

0 commit comments

Comments
 (0)