-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Conversation
} | ||
} | ||
} | ||
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it intended?
I had to move |
ae9d2a5
to
6959f06
Compare
6959f06
to
55c62c3
Compare
@@ -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/") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
testPath.startsWith("/neg")
?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok.
Could you open an issue for that? |
No description provided.