diff options
author | Martin Odersky <odersky@gmail.com> | 2016-10-14 10:21:26 +0200 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2016-10-14 10:21:50 +0200 |
commit | bcd3c1f6e26f814a2f69d7e44f165b59b1db0fe3 (patch) | |
tree | d3cb73da07e195838c6e17750741c5b9088314e3 /tests | |
parent | 8bfaadaae141e83db7f515b042fcee26ed0e54fd (diff) | |
download | dotty-bcd3c1f6e26f814a2f69d7e44f165b59b1db0fe3.tar.gz dotty-bcd3c1f6e26f814a2f69d7e44f165b59b1db0fe3.tar.bz2 dotty-bcd3c1f6e26f814a2f69d7e44f165b59b1db0fe3.zip |
Fix #1531: Ignore private members when looking for abstract ones
Private members do not override abstract ones. So when looking for
abstract members we need to search with `nonPrivateMember`, not
`member`.
Fixes #1531. Review by @smarter.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/neg/i1531.scala | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/neg/i1531.scala b/tests/neg/i1531.scala new file mode 100644 index 000000000..3c05e9509 --- /dev/null +++ b/tests/neg/i1531.scala @@ -0,0 +1,6 @@ +trait T { + def f: Int +} + +class A(f: Int) extends T // error: class A needs to be abstract + |