diff options
author | Iulian Dragos <jaguarul@gmail.com> | 2010-05-13 11:50:48 +0000 |
---|---|---|
committer | Iulian Dragos <jaguarul@gmail.com> | 2010-05-13 11:50:48 +0000 |
commit | a239e85e6552542a434e20b0749eb7c68f943de9 (patch) | |
tree | efe0f40ffe73f95bd529a36e2b36ab4843cb4a6a /test | |
parent | fa75d20c42b520eae0bf5b550fc4094a9cc895c5 (diff) | |
download | scala-a239e85e6552542a434e20b0749eb7c68f943de9.tar.gz scala-a239e85e6552542a434e20b0749eb7c68f943de9.tar.bz2 scala-a239e85e6552542a434e20b0749eb7c68f943de9.zip |
Closes #3433.
Diffstat (limited to 'test')
-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) |