summaryrefslogtreecommitdiff
path: root/test/files/neg/t8177a.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/neg/t8177a.scala')
-rw-r--r--test/files/neg/t8177a.scala6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/files/neg/t8177a.scala b/test/files/neg/t8177a.scala
new file mode 100644
index 0000000000..d1e47f8c1e
--- /dev/null
+++ b/test/files/neg/t8177a.scala
@@ -0,0 +1,6 @@
+trait A { type Result }
+
+class PolyTests {
+ def wrong(x: A { type Result = Int })
+ : A { type Result = String} = x
+} \ No newline at end of file