summaryrefslogtreecommitdiff
path: root/test/files/neg/t8892.check
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/neg/t8892.check')
-rw-r--r--test/files/neg/t8892.check7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/files/neg/t8892.check b/test/files/neg/t8892.check
new file mode 100644
index 0000000000..5930be58c5
--- /dev/null
+++ b/test/files/neg/t8892.check
@@ -0,0 +1,7 @@
+t8892.scala:2: error: type mismatch;
+ found : B
+ required: C.this.B
+ (which expands to) String
+class C[B](x: B) extends A { def f: B = x }
+ ^
+one error found