summaryrefslogtreecommitdiff
path: root/test/files/neg/t1431.check
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/neg/t1431.check')
-rw-r--r--test/files/neg/t1431.check4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/files/neg/t1431.check b/test/files/neg/t1431.check
new file mode 100644
index 0000000000..a17ba73243
--- /dev/null
+++ b/test/files/neg/t1431.check
@@ -0,0 +1,4 @@
+t1431.scala:8: error: class type required but X#Factory found
+ def fun[X<:MyTrait with Singleton]() = new X#Factory().value
+ ^
+one error found