summaryrefslogblamecommitdiff
path: root/test/files/neg/t7501/t7501_1.scala
blob: 323c3276235e77fab6f8fc8caf3de8be80ee227f (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12











                                                                   
object Test2 {
 def test[X](name: String) = 12
}
class strangeTest(x: Int) extends scala.annotation.StaticAnnotation

trait A {
  // When picking the type of `test`, the value parameter
  // `x` was pickled with the owner `trait A`. On unpickling,
  // it was taken to be a member!
  @strangeTest(Test2.test("test"))
  def test(x: String): Unit
}