Open
Conversation
Contributor
Author
|
This doesn't compile with updated dependencies. Something caused by changes in |
laughedelic
commented
Oct 23, 2017
| type Output <: AnyDataSet | ||
| // FIXME: this is supposed to be the same: | ||
| // type Output <: AnyDataSet // = AnyRecordType.Of[AnyData] | ||
| type Output <: AnyRecordType { type Keys <: AnyProductType { type Types <: AnyKList { type Bound <: AnyData } } } |
Contributor
Author
There was a problem hiding this comment.
I don't understand why it doesn't compile with AnyDataSet, which is AnyRecordType.Of[AnyData], which is supposed to be the same as the last line (which makes it compile):
case object AnyRecordType {
type Of[+B <: AnyType] = AnyRecordType { type Keys <: AnyProductType.Of[B] }
}
case object AnyProductType {
type Of[+B <: AnyType] = AnyProductType { type Types <: AnyKList.Of[B] }
}
case object AnyKList {
type Of[+B] = AnyKList { type Bound <: B }
}@eparejatobes any clue?
Contributor
There was a problem hiding this comment.
There are a lot of issues with inference and aliasing. A sample:
- Type inference does not dealias type constructors enough to infer type arguments scala/bug#8709
- Type aliases with return type inference works bad scala/bug#8740
- Flakey implicit resolution with type alias Id[A] = A scala/bug#10238
- implicit resolution error for Aux pattern with parametrized type scala/bug#10528
- Can't prove equality between syntactically equal type aliases to an existential type scala/bug#10556
- ...
Contributor
Author
|
OK, So I'm going to leave here this unfolded refined type and hope that it doesn't break anything dependent on it. I think these |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
No description provided.