diff options
author | Hubert Plociniczak <hubert.plociniczak@epfl.ch> | 2009-12-11 10:55:08 +0000 |
---|---|---|
committer | Hubert Plociniczak <hubert.plociniczak@epfl.ch> | 2009-12-11 10:55:08 +0000 |
commit | e378965dc26c8f1123b87b6b60418bb4872e395b (patch) | |
tree | 4ad520aedb54c2b53b542726c6c386fcf0059176 /test/files | |
parent | db3d2518f57b2aebf64a6577a16dd0cd30aa633c (diff) | |
download | scala-e378965dc26c8f1123b87b6b60418bb4872e395b.tar.gz scala-e378965dc26c8f1123b87b6b60418bb4872e395b.tar.bz2 scala-e378965dc26c8f1123b87b6b60418bb4872e395b.zip |
Added test for #2794
Diffstat (limited to 'test/files')
-rw-r--r-- | test/files/pos/t2794.scala | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/files/pos/t2794.scala b/test/files/pos/t2794.scala new file mode 100644 index 0000000000..caefea4fbb --- /dev/null +++ b/test/files/pos/t2794.scala @@ -0,0 +1,9 @@ +class Key[T] + +class Entry[T](val k: Key[T], val v: T) + +object Entry { + + def makeDefault[T <: AnyRef] = new Entry[T](new Key[T], null: T) + +} |