Skip to content

Drop MethodOrHKCommon, ensure HigherKinded is properly labeled #4254

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

Conversation

Blaisorblade
Copy link
Contributor

No description provided.

@Blaisorblade Blaisorblade requested a review from liufengyun April 5, 2018 16:33
@Blaisorblade
Copy link
Contributor Author

Blaisorblade commented Apr 5, 2018

EDIT: ignore this message, it's about an unrelated spurious failure.


This failed locally but not on CI, I suppose it's because I didn't clean before launching... but would cleaning hide some bug?
EDIT: investigating.
EDIT2: IIUC, the test fails/is flaky on a clean compile on case-insensitive filesystems, because overloaded_ho_fun.scala triggers a case-sensitivity warning:

-- Warning: /Users/pgiarrusso/git/dotty/tests/pos/overloaded_ho_fun.scala:89:6 -
89 |trait SAM[-T, +R] { def apply(x: T): R }
   |      ^
   |Class SAM differs only in case from Sam. Such classes will overwrite one another on case-insensitive filesystems.
one warning found

so on case-insensitive FSs that test can only compile, not actually work, and not compile from TASTY IIUC.

Indeed, the new run gave a different error:

[info] Test dotty.tools.dotc.FromTastyTests.posTestFromTasty started
[=======================================] completed (1466/1466, 70s)
undefined: B2.t.f # 6950539: TermRef(TermRef(ThisType(TypeRef(ThisType(TypeRef(ThisType(TypeRef(NoPrefix,module class <root>)),module class <empty>)),module class B2$)),module t),f) at frontend
[=======================================] completed (1362/1362, 39s)

Yet, that file passes on testCompilation despite the warning (confirmed with testCompilation overloaded_ho_fun). I'll fix the test in a separate PR, but I got questions on the infrastructure.

Copy link
Contributor

@liufengyun liufengyun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems it's just a refactoring. LGTM. Maybe @odersky should have a look.

Blaisorblade added a commit to dotty-staging/dotty that referenced this pull request Apr 5, 2018
This came up in scala#4254, though it might not matter.
@Blaisorblade
Copy link
Contributor Author

Opened #4258 for the local issues.

@odersky odersky assigned Blaisorblade and unassigned odersky Apr 15, 2018
@Blaisorblade Blaisorblade merged commit 5dc50c4 into scala:master Apr 15, 2018
@Blaisorblade Blaisorblade deleted the change-desc-higher-kinded-flag branch April 15, 2018 18:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants