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
Ill-typed code crashes hard in adaptToImplicitMethod #5803
Comments
Imported From: https://issues.scala-lang.org/browse/SI-5803?orig=1 |
@retronym said: ~/code/scratch for f in ~/usr/scala*; do echo $f; $f/bin/scalac either.scala 2>&1 | grep -i "exception"; done
/Users/jason/usr/scala-2.10.0-20120425-140228-8f3f0724f9
/Users/jason/usr/scala-2.10.0-20120427-100603-399ab16c29
/Users/jason/usr/scala-2.10.0-20120428-143539-774cd4f87b
/Users/jason/usr/scala-2.10.0-20120428-232041-e6d5d22d28
/Users/jason/usr/scala-2.10.0-20120430-094203-cfd037271e
/Users/jason/usr/scala-2.10.0-20120503-160535-58f6a13460
uncaught exception during compilation: java.lang.AssertionError
Exception in thread "main" java.lang.AssertionError: assertion failed:
/Users/jason/usr/scala-2.10.0-20120504-065643-e52be82eef
uncaught exception during compilation: java.lang.AssertionError
Exception in thread "main" java.lang.AssertionError: assertion failed: There was a short gap in the nightly builds at the beginning of May, Murphy's law dictates that the regression lies therein: |
@retronym said: (bisect/bad) ~/code/scala git bisect log
# bad: [58f6a1346093db2f407879246884d480ff8d7904] Fix for SI-3718.
# good: [cfd037271ebf96b977d4ef06dbcd7814cfcc20a0] Merge branch 'apr30-checkin' of /scala/trunk into develop
git bisect start '58f6a13460' 'cfd037271e'
# bad: [4b8c54cd9e52dbacc239d05c8149d7f249bbebab] Merge commit 'refs/pull/457/head'; commit 'refs/pull/458/head'; commit 'refs/pull/459/head'; commit 'refs/pull/460/head'; commit 'refs/pull/461/head'; commit 'refs/pull/462/head'; commit 'refs/pull/463/head'; commit 'refs/pull/464/head'; commit 'refs/pull/465/head' into develop
git bisect bad 4b8c54cd9e52dbacc239d05c8149d7f249bbebab
# bad: [89d069792717c206da21abecf3f825756182f465] un-cps expected type in translateMatch
git bisect bad 89d069792717c206da21abecf3f825756182f465
# good: [15e05a400be378b012903411179f2a4114f890ef] A little clarity for AddInterfaces.
git bisect good 15e05a400be378b012903411179f2a4114f890ef
# bad: [b27abca41a2503747b3aeeecf8b8cb355159265f] tpe -> tpeHK here and there.
git bisect bad b27abca41a2503747b3aeeecf8b8cb355159265f
# bad: [e69ee3676dec6023a0d552a6dbabf9ffd29a7111] Hackaround for people who like to instantiate the uninstantiable.
git bisect bad e69ee3676dec6023a0d552a6dbabf9ffd29a7111
# bad: [ae5ff6628bb74c16d871a2ada0664cdd5d2399a5] Fixes #SI-5578. ResetAttrs shouldn't be side-effecting on the original tree, since it can lead to NPEs in erroneous trees (or maybe even for valid ones?). Review by @odersky
git bisect bad ae5ff6628bb74c16d871a2ada0664cdd5d2399a5 |
@retronym said: // TODO: use a factory method, not a class (???)
// as a case in point of the comment that should go here by similarity to ApplyToImplicitArgs,
// this tree is considered in importers, but not in treecopier
class ApplyConstructor(tpt: Tree, args: List[Tree]) extends Apply(Select(New(tpt), nme.CONSTRUCTOR), args) { https://github.com/scala/scala/blob/ae5ff662/src/library/scala/reflect/api/Trees.scala#L650 |
@retronym said: |
Regression occurred after 2.10.0-M3, I'm trying to pinpoint it now.
Error:
The text was updated successfully, but these errors were encountered: