From 315c097d3a72077512fa06d7c26e8ad09a8b3f66 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Fri, 16 May 2014 14:25:39 +0200 Subject: Triage of tests t27xx-t29xx. --- tests/pos/t2794.scala | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 tests/pos/t2794.scala (limited to 'tests/pos/t2794.scala') diff --git a/tests/pos/t2794.scala b/tests/pos/t2794.scala new file mode 100644 index 000000000..a17edf8cb --- /dev/null +++ b/tests/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 >: Null <: AnyRef] = new Entry[T](new Key[T], null: T) + +} -- cgit v1.2.3