diff options
author | Iulian Dragos <jaguarul@gmail.com> | 2010-04-09 15:42:34 +0000 |
---|---|---|
committer | Iulian Dragos <jaguarul@gmail.com> | 2010-04-09 15:42:34 +0000 |
commit | 710e1cb6c4029f39bdd1eece975dbb3cdfafdeda (patch) | |
tree | 9d2fd741d17d2410b571f72bed5d7e5525ad5440 /test/files/run | |
parent | d76943f9ae43176980f21f90f400053fe2da3fbf (diff) | |
download | scala-710e1cb6c4029f39bdd1eece975dbb3cdfafdeda.tar.gz scala-710e1cb6c4029f39bdd1eece975dbb3cdfafdeda.tar.bz2 scala-710e1cb6c4029f39bdd1eece975dbb3cdfafdeda.zip |
Changed the syntax of the specialized annotation:
instead of a flaky string, it now takes a
repeated parameter list of primitive types:
@specialized("Int, Double") becomes @specialized(Int, Double). No
review.
Diffstat (limited to 'test/files/run')
-rw-r--r-- | test/files/run/spec-absfun.scala | 2 | ||||
-rw-r--r-- | test/files/run/spec-matrix.scala | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/test/files/run/spec-absfun.scala b/test/files/run/spec-absfun.scala index ab16e8febc..2b780548f5 100644 --- a/test/files/run/spec-absfun.scala +++ b/test/files/run/spec-absfun.scala @@ -37,7 +37,7 @@ class Pair[A](_first: A, _second: A) { def second = _second } -class SpecializedPair[@specialized("Int") A](_first: A, _second: A) { +class SpecializedPair[@specialized(Int) A](_first: A, _second: A) { def first = _first def second = _second } diff --git a/test/files/run/spec-matrix.scala b/test/files/run/spec-matrix.scala index 212a800672..81e3eaf212 100644 --- a/test/files/run/spec-matrix.scala +++ b/test/files/run/spec-matrix.scala @@ -43,7 +43,7 @@ object Test { } - def multManifest[@specialized("Int") T](m: Matrix[T], n: Matrix[T])(implicit cm: ClassManifest[T], num: Numeric[T]) { + def multManifest[@specialized(Int) T](m: Matrix[T], n: Matrix[T])(implicit cm: ClassManifest[T], num: Numeric[T]) { val p = new Matrix[T](m.rows, n.cols) import num._ |