You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Code to repro (repository), with some comments for different cases that actually work:
packagebugclassFoo[A]
objectBar {
// Traceback in https://github.com/blast-hardcheese/scala-issue/blob/master/README.md
(newFoo).bogus[(Long, Long)]
// [error] /private/tmp/bug/src/main/scala/bug.scala:10:16: value bogus is not a member of bug.Foo[A]// [error] (new Foo).bogus[Long]// [error] ^// [error] one error found//// (new Foo).bogus[Long] // Gives an appropriate error message// [error] /private/tmp/bug/src/main/scala/bug.scala:7:19: value bogus is not a member of bug.Foo[Long]// [error] (new Foo[Long]).bogus[(Long, Long)]// [error] ^// [error] one error found//// (new Foo[Long]).bogus[(Long, Long)]
}
I tried against 2.12.8-bin-5fca7b2 and got the same unhelpful error, but 2.12.0-2.12.3 give helpful errors.
The text was updated successfully, but these errors were encountered:
Code to repro (repository), with some comments for different cases that actually work:
I tried against
2.12.8-bin-5fca7b2
and got the same unhelpful error, but 2.12.0-2.12.3 give helpful errors.The text was updated successfully, but these errors were encountered: