summaryrefslogtreecommitdiff
path: root/test/files/pos/manifest1.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2010-02-01 17:15:05 +0000
committerMartin Odersky <odersky@gmail.com>2010-02-01 17:15:05 +0000
commit3282ac260cebe12a2d0dcb6bb7c0e479e0e20c6c (patch)
tree7573e3247a1215dd23c994cc2733c56532e146c8 /test/files/pos/manifest1.scala
parent490ed74ff8e5c70789cde74646fd6c2b7abbfc21 (diff)
downloadscala-3282ac260cebe12a2d0dcb6bb7c0e479e0e20c6c.tar.gz
scala-3282ac260cebe12a2d0dcb6bb7c0e479e0e20c6c.tar.bz2
scala-3282ac260cebe12a2d0dcb6bb7c0e479e0e20c6c.zip
suppresses generation of manifests for abstract...
suppresses generation of manifests for abstract type members.
Diffstat (limited to 'test/files/pos/manifest1.scala')
-rw-r--r--test/files/pos/manifest1.scala7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/files/pos/manifest1.scala b/test/files/pos/manifest1.scala
index 4d3b3bfa48..8901aa7437 100644
--- a/test/files/pos/manifest1.scala
+++ b/test/files/pos/manifest1.scala
@@ -13,8 +13,9 @@ object Test {
abstract class C { type T = String; val x: T }
val c = new C { val x = "abc" }
foo(c.x)
- abstract class D { type T; val x: T }
- val d: D = new D { type T = String; val x = "x" }
+ abstract class D { type T; implicit val m: Manifest[T]; val x: T }
+ val stringm = implicitly[Manifest[String]]
+ val d: D = new D { type T = String; val m = stringm; val x = "x" }
+ import d.m
foo(d.x)
-
}