diff options
author | Martin Odersky <odersky@gmail.com> | 2009-01-28 19:16:22 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2009-01-28 19:16:22 +0000 |
commit | a0c64cf5a8856cb8d905530e91ac052351b92efc (patch) | |
tree | bf601862a86177eaa36dbfb210e3c6e2909f8edf /src | |
parent | 0606aa4755cc5261645e075176946fc16945561d (diff) | |
download | scala-a0c64cf5a8856cb8d905530e91ac052351b92efc.tar.gz scala-a0c64cf5a8856cb8d905530e91ac052351b92efc.tar.bz2 scala-a0c64cf5a8856cb8d905530e91ac052351b92efc.zip |
added optional manifests
Diffstat (limited to 'src')
-rwxr-xr-x | src/library/scala/reflect/NoManifest.scala | 17 | ||||
-rwxr-xr-x | src/library/scala/reflect/OptManifest.scala | 19 |
2 files changed, 36 insertions, 0 deletions
diff --git a/src/library/scala/reflect/NoManifest.scala b/src/library/scala/reflect/NoManifest.scala new file mode 100755 index 0000000000..06c13c9b32 --- /dev/null +++ b/src/library/scala/reflect/NoManifest.scala @@ -0,0 +1,17 @@ +/* __ *\ +** ________ ___ / / ___ Scala API ** +** / __/ __// _ | / / / _ | (c) 2007-2009, LAMP/EPFL ** +** __\ \/ /__/ __ |/ /__/ __ | http://scala-lang.org/ ** +** /____/\___/_/ |_/____/_/ | | ** +** |/ ** +\* */ + +// $Id: Manifest.scala 16625 2008-11-25 16:04:12Z michelou $ + + +package scala.reflect + +/** <p> One of the branches of an OptManifest + */ +@serializable +object NoManifest extends OptManifest[Nothing] diff --git a/src/library/scala/reflect/OptManifest.scala b/src/library/scala/reflect/OptManifest.scala new file mode 100755 index 0000000000..ebbeb18282 --- /dev/null +++ b/src/library/scala/reflect/OptManifest.scala @@ -0,0 +1,19 @@ +/* __ *\ +** ________ ___ / / ___ Scala API ** +** / __/ __// _ | / / / _ | (c) 2007-2009, LAMP/EPFL ** +** __\ \/ /__/ __ |/ /__/ __ | http://scala-lang.org/ ** +** /____/\___/_/ |_/____/_/ | | ** +** |/ ** +\* */ + +// $Id: Manifest.scala 16625 2008-11-25 16:04:12Z michelou $ + + +package scala.reflect + +/** <p> + * A <code>OptManifest[T]</code> is an optional @see Manifest. + * It is either a Manifest or the value NoManifest + */ +@serializable +trait OptManifest[+T] |