summaryrefslogtreecommitdiff
path: root/test/files/pos/t9074b.scala
blob: dadcebf399ec7fe3099e72c5064744233e8eb9f4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
trait Echo [T] {
  def echo(t: T): Unit
}

trait IntEcho extends Echo[Int] {
  def echo(t: Int) = println(t)
}

object echo extends IntEcho
package object echo1  extends IntEcho

object App extends App {
  echo.echo(1)
  echo1.echo(1)
}