Skip to content

Conversation

@allanrenucci
Copy link
Contributor

No description provided.

trait A { self: Any { def p: Any } =>
def f(b: => Unit): Unit = {}
f { p } // error: cannot access member 'p' from structural type
f { p } // OK
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it intended?

@allanrenucci
Copy link
Contributor Author

I had to move tests/neg/inlineAccess to tests/pending/inlineAccess. It crashes the compiler

@allanrenucci allanrenucci force-pushed the neg-tests branch 2 times, most recently from ae9d2a5 to 6959f06 Compare November 30, 2017 17:25

private def isNegTest(testPath: String) = testPath.contains("/neg/")
private def isNegTest(testPath: String) =
testPath.contains("/neg/") || testPath.contains("/neg-custom-args/") || testPath.contains("/neg-tailcall/")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

testPath.startsWith("/neg") ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe the full path is given here. Something like ../tests/neg/Foo.scala. I wouldn't bother to do something smarter since this is for the legacy tests

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok.

@smarter
Copy link
Member

smarter commented Dec 1, 2017

I had to move tests/neg/inlineAccess to tests/pending/inlineAccess. It crashes the compiler

Could you open an issue for that?

@smarter smarter merged commit f2c7448 into scala:master Dec 1, 2017
@allanrenucci allanrenucci deleted the neg-tests branch December 1, 2017 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants