diff options
Diffstat (limited to 'test/files/run/t2236.scala')
-rwxr-xr-x | test/files/run/t2236.scala | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/files/run/t2236.scala b/test/files/run/t2236.scala new file mode 100755 index 0000000000..8e2b3900d4 --- /dev/null +++ b/test/files/run/t2236.scala @@ -0,0 +1,17 @@ +class T[A](implicit val m:Manifest[A]) +class Foo +class Bar extends T[Foo] +object Test extends Application { + new Bar +} + +object EvidenceTest { + trait E[T] + trait A[T] { implicit val e: E[T] = null } + class B[T : E] extends A[T] { override val e = null } + + def f[T] { + implicit val e: E[T] = null + new B[T]{} + } +} |