aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/i877.scala
blob: 45a71ae0d7c3c1f0fc001215751911d7b2c15a4b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
class First[A]
class Second[A]

class Foo {
  def foo[A: First] = {
    def bar[B: Second] = {
      val fst: First[A] = implicitly[First[A]]
      val snd: Second[B] = implicitly[Second[B]]
    }
  }
}