aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/t0770.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pos/t0770.scala')
-rw-r--r--tests/pos/t0770.scala13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/pos/t0770.scala b/tests/pos/t0770.scala
new file mode 100644
index 000000000..7a0a2bf9b
--- /dev/null
+++ b/tests/pos/t0770.scala
@@ -0,0 +1,13 @@
+trait A
+{
+ private[this] val p = 5
+
+ def f = (b: Byte) => p
+}
+
+trait B
+{
+ def failure: Boolean
+ def success = !failure
+}
+