Skip to content

Fix #3581: Reorganise neg tests #3612

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 1, 2017
Merged

Conversation

allanrenucci
Copy link
Contributor

No description provided.

}
}
}
package p4 {

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
@@ -149,7 +149,8 @@ abstract class CompilerTest {

private def expectedErrors(filePath: String): List[ErrorsInFile] = expectedErrors(List(filePath))

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