We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
object Dependent{ def x: ( (i: Int) |=> Int ) = ??? def y: ( (i: Int) |=> Int ) = x } object Independent{ def x: ( Int |=> Int ) = ??? def y: ( Int |=> Int ) = x } object NarrowDependent{ def x: ( Int |=> Int ) = ??? def y: ( (i: Int) |=> Int ) = x } object WidenDependent{ def x: ( (i: Int) |=> Int ) = ??? def y: ( Int |=> Int ) = x }
Independent, NarrowDependent are compiled with no errors. Dependent, WidenDependent both fail to compile: Dependent:
Found: => (i: Int) |=> Int(Dependent.x) Required: Int
WidenDependent:
Found: => (i: Int) |=> Int(WidenDependent.x) Required: Int
The text was updated successfully, but these errors were encountered:
Fix scala#5833: Refine condition what constitutes an IFT in adapt
7db38bf
c20730a
Merge pull request #5841 from dotty-staging/fix-#5833
482de4e
Fix #5833: Refine condition what constitutes an IFT in adapt
No branches or pull requests
Independent, NarrowDependent are compiled with no errors.
Dependent, WidenDependent both fail to compile:
Dependent:
WidenDependent:
The text was updated successfully, but these errors were encountered: