diff options
Diffstat (limited to 'test/files/pos')
-rw-r--r-- | test/files/pos/spec-doubledef.scala | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/files/pos/spec-doubledef.scala b/test/files/pos/spec-doubledef.scala index e296a17c78..014f683065 100644 --- a/test/files/pos/spec-doubledef.scala +++ b/test/files/pos/spec-doubledef.scala @@ -1,3 +1,8 @@ +object Test { + def fn[@specialized T, @specialized U](t : T => Int, u : U => Int) : T = + null.asInstanceOf[T] +} + trait A[@specialized(Int) T] { var value: T def getWith[@specialized(Int) Z](f: T => Z) = f(value) |