-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Print missing package prefixes #6113
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
nicolasstucki
merged 2 commits into
scala:master
from
dotty-staging:add-missing-package-prefix
Mar 19, 2019
Merged
Changes from 1 commit
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 |
---|---|---|
@@ -1,12 +1,12 @@ | ||
object varargspos { | ||
def g(a: scala.Int, x: scala.Int*): scala.Int = a.+(x.length) | ||
varargspos.g(1, 2, 3, 4) | ||
val xs: collection.immutable.List[scala.Int] = scala.Nil.::[scala.Int](2).::[scala.Int](1) | ||
val xs: scala.collection.immutable.List[scala.Int] = scala.Nil.::[scala.Int](2).::[scala.Int](1) | ||
val a: scala.Int = 8 | ||
val b: scala.Int = 7 | ||
varargspos.g(5, varargspos.xs: _*) | ||
varargspos.g(3, scala.Nil: _*) | ||
varargspos.g(varargspos.a, varargspos.xs: _*) | ||
varargspos.g(varargspos.a, varargspos.b, 2, 3) | ||
varargspos.g(1) | ||
} | ||
} |
This file contains hidden or 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 |
---|---|---|
@@ -1,12 +1,12 @@ | ||
|
||
scala.Predef.classOf[lang.Object].getCanonicalName() | ||
scala.Predef.classOf[java.lang.Object].getCanonicalName() | ||
java.lang.Object | ||
|
||
scala.Predef.classOf[lang.Object].getCanonicalName() | ||
scala.Predef.classOf[java.lang.Object].getCanonicalName() | ||
java.lang.Object | ||
|
||
scala.Predef.classOf[lang.Object].getCanonicalName() | ||
scala.Predef.classOf[java.lang.Object].getCanonicalName() | ||
java.lang.Object | ||
|
||
scala.Predef.classOf[lang.Object].getCanonicalName() | ||
scala.Predef.classOf[java.lang.Object].getCanonicalName() | ||
java.lang.Object |
This file contains hidden or 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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
|
||
scala.Predef.classOf[runtime.Null].getCanonicalName() | ||
scala.Predef.classOf[scala.runtime.Null].getCanonicalName() | ||
scala.runtime.Null$ | ||
|
||
scala.Predef.classOf[runtime.Nothing].getCanonicalName() | ||
scala.Predef.classOf[scala.runtime.Nothing].getCanonicalName() | ||
scala.runtime.Nothing$ | ||
|
||
scala.Predef.classOf[lang.String].getCanonicalName() | ||
scala.Predef.classOf[java.lang.String].getCanonicalName() | ||
java.lang.String |
This file contains hidden or 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 hidden or 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 |
---|---|---|
@@ -1,12 +1,12 @@ | ||
|
||
scala.Predef.classOf[scala.Array[lang.Object]].getCanonicalName() | ||
scala.Predef.classOf[scala.Array[java.lang.Object]].getCanonicalName() | ||
java.lang.Object[] | ||
|
||
scala.Predef.classOf[scala.Array[lang.Object]].getCanonicalName() | ||
scala.Predef.classOf[scala.Array[java.lang.Object]].getCanonicalName() | ||
java.lang.Object[] | ||
|
||
scala.Predef.classOf[scala.Array[lang.Object]].getCanonicalName() | ||
scala.Predef.classOf[scala.Array[java.lang.Object]].getCanonicalName() | ||
java.lang.Object[] | ||
|
||
scala.Predef.classOf[scala.Array[lang.Object]].getCanonicalName() | ||
scala.Predef.classOf[scala.Array[java.lang.Object]].getCanonicalName() | ||
java.lang.Object[] |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
---|---|---|
|
@@ -23,4 +23,4 @@ object Test { | |
b.g() | ||
b.h() | ||
} | ||
} | ||
} |
This file contains hidden or 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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
object Test { | ||
import scala.util.{Try} | ||
def main(args: scala.Array[scala.Predef.String]): scala.Unit = { | ||
def stream: collection.immutable.Stream[scala.None.type] = scala.Stream.from(0).take(100000).map[scala.None.type, collection.immutable.Stream[scala.None.type]](((n: scala.Int) => scala.None))(collection.immutable.Stream.canBuildFrom[scala.None.type]) | ||
def stream: scala.collection.immutable.Stream[scala.None.type] = scala.Stream.from(0).take(100000).map[scala.None.type, scala.collection.immutable.Stream[scala.None.type]](((n: scala.Int) => scala.None))(scala.collection.immutable.Stream.canBuildFrom[scala.None.type]) | ||
scala.Predef.println(scala.util.Try.apply[scala.Int](stream.flatten[scala.Nothing](((xo: scala.None.type) => scala.Option.option2Iterable[scala.Nothing](xo))).length)) | ||
} | ||
} |
This file contains hidden or 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 hidden or 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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
lang.String | ||
lang.String | ||
immutable.List[A] | ||
immutable.List[scala.Int] | ||
java.lang.String | ||
java.lang.String | ||
scala.collection.immutable.List[A] | ||
scala.collection.immutable.List[scala.Int] |
This file contains hidden or 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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
collection.immutable.List[scala.Int] | ||
scala.collection.immutable.List[scala.Int] | ||
Macros | ||
Macros |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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'm wondering inside the
if
, what is the value ofprefix
at runtime?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 is a
Types.EmptyPrefix()
as the pattern matching indicates.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.
If that is the case, it seems to me the type is ill-formed, the
prefix
is wrong -- or I misunderstood the invariant forTermRef
. We can get this in to unblock other issues, but it would be nice to clarify the invariant aboutTermRef
. /cc: @odersky .