aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/t1131.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pos/t1131.scala')
-rw-r--r--tests/pos/t1131.scala6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/pos/t1131.scala b/tests/pos/t1131.scala
index 1b2a90457..740a36bdb 100644
--- a/tests/pos/t1131.scala
+++ b/tests/pos/t1131.scala
@@ -1,4 +1,8 @@
-trait A { self: Any { def p: Any } =>
+trait C {
+ def p: Any
+}
+
+trait A { self: C { def p: String } =>
def f(b: => Unit): Unit = {}
f { p }
}