summaryrefslogtreecommitdiff
path: root/test/files/pos/t2794.scala
diff options
context:
space:
mode:
authorHubert Plociniczak <hubert.plociniczak@epfl.ch>2009-12-11 10:55:08 +0000
committerHubert Plociniczak <hubert.plociniczak@epfl.ch>2009-12-11 10:55:08 +0000
commite378965dc26c8f1123b87b6b60418bb4872e395b (patch)
tree4ad520aedb54c2b53b542726c6c386fcf0059176 /test/files/pos/t2794.scala
parentdb3d2518f57b2aebf64a6577a16dd0cd30aa633c (diff)
downloadscala-e378965dc26c8f1123b87b6b60418bb4872e395b.tar.gz
scala-e378965dc26c8f1123b87b6b60418bb4872e395b.tar.bz2
scala-e378965dc26c8f1123b87b6b60418bb4872e395b.zip
Added test for #2794
Diffstat (limited to 'test/files/pos/t2794.scala')
-rw-r--r--test/files/pos/t2794.scala9
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)
+
+}