summaryrefslogtreecommitdiff
path: root/test/files/neg/t0842.check
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/neg/t0842.check')
-rw-r--r--test/files/neg/t0842.check4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/files/neg/t0842.check b/test/files/neg/t0842.check
new file mode 100644
index 0000000000..5f88f08194
--- /dev/null
+++ b/test/files/neg/t0842.check
@@ -0,0 +1,4 @@
+t0842.scala:1: error: A.this.type does not take type parameters
+trait A[T] { def m: this.type[T] = this }
+ ^
+one error found