summaryrefslogtreecommitdiff
path: root/test/files/neg
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/neg')
-rw-r--r--test/files/neg/t0590.check5
-rw-r--r--test/files/neg/t0590.scala3
2 files changed, 8 insertions, 0 deletions
diff --git a/test/files/neg/t0590.check b/test/files/neg/t0590.check
new file mode 100644
index 0000000000..b928c1cb76
--- /dev/null
+++ b/test/files/neg/t0590.check
@@ -0,0 +1,5 @@
+t0590.scala:2: error: diverging implicit expansion for type (Null(null)) => T
+starting with method foo in object Test
+ implicit def foo[T] : T = null
+ ^
+one error found
diff --git a/test/files/neg/t0590.scala b/test/files/neg/t0590.scala
new file mode 100644
index 0000000000..3416ade355
--- /dev/null
+++ b/test/files/neg/t0590.scala
@@ -0,0 +1,3 @@
+object Test {
+ implicit def foo[T] : T = null
+}