diff options
Diffstat (limited to 'tests/neg/t1131.scala')
-rw-r--r-- | tests/neg/t1131.scala | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/neg/t1131.scala b/tests/neg/t1131.scala new file mode 100644 index 000000000..f4a7b377d --- /dev/null +++ b/tests/neg/t1131.scala @@ -0,0 +1,4 @@ +trait A { self: Any { def p: Any } => + def f(b: => Unit): Unit = {} + f { p } // error: cannot access member 'p' from structural type +} |