-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes SI-5801, error messages regression. Review by @adriaanm
- Loading branch information
Showing
3 changed files
with
41 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
t5801.scala:1: error: object sth is not a member of package scala | ||
import scala.sth | ||
^ | ||
t5801.scala:4: error: not found: value sth | ||
def foo(a: Int)(implicit b: sth.Sth): Unit = {} | ||
^ | ||
t5801.scala:7: error: not found: value sth | ||
def bar(x: Int)(implicit y: Int): sth.Sth = null | ||
^ | ||
t5801.scala:8: error: could not find implicit value for parameter y: Int | ||
bar(1) | ||
^ | ||
t5801.scala:10: error: not found: value sth | ||
def meh(x: Int)(implicit a: sth.Sth, b: Int): Unit = {} | ||
^ | ||
t5801.scala:13: error: not found: value sth | ||
def meh2(x: Int)(implicit b: Int, a: sth.Sth): Unit = {} | ||
^ | ||
t5801.scala:14: error: could not find implicit value for parameter b: Int | ||
meh2(1) | ||
^ | ||
7 errors found |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import scala.sth | ||
|
||
object Test extends App { | ||
def foo(a: Int)(implicit b: sth.Sth): Unit = {} | ||
foo(1) | ||
|
||
def bar(x: Int)(implicit y: Int): sth.Sth = null | ||
bar(1) | ||
|
||
def meh(x: Int)(implicit a: sth.Sth, b: Int): Unit = {} | ||
meh(1) | ||
|
||
def meh2(x: Int)(implicit b: Int, a: sth.Sth): Unit = {} | ||
meh2(1) | ||
} | ||
|
7490250
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.
this seems to have broken range positions:
https://scala-webapps.epfl.ch/jenkins/job/scala-checkin-rangpos/735/
7490250
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.
It was based on an old master. Everything is fine.
7490250
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, sorry for the confusion