-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
fix issue 20901: etaCollapse context bound type #20910
Merged
Merged
Changes from all commits
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 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,6 @@ | ||
//> using options -Ytest-pickler-check | ||
|
||
import reflect.ClassTag | ||
|
||
class Foo: | ||
def mkArray[T: ClassTag] = ??? |
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,124 @@ | ||
Header: | ||
version: <elided> | ||
tooling: <elided> | ||
UUID: <elided> | ||
|
||
Names (276 bytes, starting from <elided base index>): | ||
0: ASTs | ||
1: <empty> | ||
2: scala | ||
3: reflect | ||
4: scala[Qualified . reflect] | ||
5: ClassTag | ||
6: Foo | ||
7: <init> | ||
8: java | ||
9: lang | ||
10: java[Qualified . lang] | ||
11: Object | ||
12: java[Qualified . lang][Qualified . Object] | ||
13: <init>[Signed Signature(List(),java.lang.Object) @<init>] | ||
14: Unit | ||
15: mkArray | ||
16: T | ||
17: Nothing | ||
18: Any | ||
19: evidence$ | ||
20: [Unique evidence$ 1] | ||
21: ??? | ||
22: Predef | ||
23: SourceFile | ||
24: annotation | ||
25: scala[Qualified . annotation] | ||
26: internal | ||
27: scala[Qualified . annotation][Qualified . internal] | ||
28: scala[Qualified . annotation][Qualified . internal][Qualified . SourceFile] | ||
29: String | ||
30: java[Qualified . lang][Qualified . String] | ||
31: <init>[Signed Signature(List(java.lang.String),scala.annotation.internal.SourceFile) @<init>] | ||
32: <elided source file name> | ||
33: Positions | ||
34: Comments | ||
35: Attributes | ||
|
||
Trees (94 bytes, starting from <elided base index>): | ||
0: PACKAGE(92) | ||
2: TERMREFpkg 1 [<empty>] | ||
4: IMPORT(4) | ||
6: TERMREFpkg 4 [scala[Qualified . reflect]] | ||
8: IMPORTED 5 [ClassTag] | ||
10: TYPEDEF(82) 6 [Foo] | ||
13: TEMPLATE(61) | ||
15: APPLY(10) | ||
17: SELECTin(8) 13 [<init>[Signed Signature(List(),java.lang.Object) @<init>]] | ||
20: NEW | ||
21: TYPEREF 11 [Object] | ||
23: TERMREFpkg 10 [java[Qualified . lang]] | ||
25: SHAREDtype 21 | ||
27: DEFDEF(7) 7 [<init>] | ||
30: EMPTYCLAUSE | ||
31: TYPEREF 14 [Unit] | ||
33: TERMREFpkg 2 [scala] | ||
35: STABLE | ||
36: DEFDEF(38) 15 [mkArray] | ||
39: TYPEPARAM(11) 16 [T] | ||
42: TYPEBOUNDStpt(8) | ||
44: TYPEREF 17 [Nothing] | ||
46: SHAREDtype 33 | ||
48: TYPEREF 18 [Any] | ||
50: SHAREDtype 33 | ||
52: PARAM(14) 20 [[Unique evidence$ 1]] | ||
55: APPLIEDtpt(10) | ||
57: IDENTtpt 5 [ClassTag] | ||
59: TYPEREF 5 [ClassTag] | ||
61: SHAREDtype 6 | ||
63: IDENTtpt 16 [T] | ||
65: TYPEREFdirect 39 | ||
67: IMPLICIT | ||
68: SHAREDtype 44 | ||
70: TERMREF 21 [???] | ||
72: TERMREF 22 [Predef] | ||
74: SHAREDtype 33 | ||
76: ANNOTATION(16) | ||
78: TYPEREF 23 [SourceFile] | ||
80: TERMREFpkg 27 [scala[Qualified . annotation][Qualified . internal]] | ||
82: APPLY(10) | ||
84: SELECTin(6) 31 [<init>[Signed Signature(List(java.lang.String),scala.annotation.internal.SourceFile) @<init>]] | ||
87: NEW | ||
88: SHAREDtype 78 | ||
90: SHAREDtype 78 | ||
92: STRINGconst 32 [<elided source file name>] | ||
94: | ||
|
||
Positions (72 bytes, starting from <elided base index>): | ||
lines: 7 | ||
line sizes: | ||
38, 0, 23, 0, 10, 32, 0 | ||
positions: | ||
0: 40 .. 108 | ||
4: 40 .. 63 | ||
6: 47 .. 54 | ||
8: 55 .. 63 | ||
10: 65 .. 108 | ||
13: 78 .. 108 | ||
21: 71 .. 71 | ||
27: 78 .. 78 | ||
31: 78 .. 78 | ||
36: 78 .. 108 | ||
39: 90 .. 101 | ||
44: 93 .. 93 | ||
48: 93 .. 93 | ||
52: 93 .. 101 | ||
57: 93 .. 101 | ||
63: 93 .. 101 | ||
68: 102 .. 102 | ||
70: 105 .. 108 | ||
82: 65 .. 108 | ||
88: 65 .. 65 | ||
92: 65 .. 65 | ||
|
||
source paths: | ||
0: 32 [<elided source file name>] | ||
|
||
Attributes (2 bytes, starting from <elided base index>): | ||
SOURCEFILEattr 32 [<elided source file name>] |
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
Oops, something went wrong.
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.
It looks like this test is breaking the
Scala 2 Library TASTy
test in the latest nightly: https://github.com/scala/scala3/actions/runs/9771174027/job/26973528590There 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.
The failure is in the TASTy output test added in this PR, but the difference doesn't seem related to context bounds - tree 68 changed - the inferred result type
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 guess we could possibly update the test to remove inference, or just stop the tasty checking
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.
or test with decompilation rather than printing tasty?
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 sorting it out
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.
see #21001