Comments (2)
As a work-around, we can also use the apply
method because it can be eta-expanded to a Function2
Foo.apply.curried(1)(true) // compiles in Scala 2.13 and Scala 3.0.0-M3
What do you think @julienrf ?
from scala-3-migration-guide.
Actually it doesn't compile in Scala 2.13:
[error] Unapplied methods are only converted to functions when a function type is expected.
[error] You can make this conversion explicit by writing `apply _` or `apply(_,_)` instead of `apply`.
[error] val foo1 = Foo.apply.curried(1)(true)
But this one cross-compiles:
(Foo.apply _).curried(1)(true)
from scala-3-migration-guide.
Related Issues (20)
- Add ambiguous reference incompatibility HOT 1
- Include sirthias/borer in list of macro libraries status
- Document editors (metals) support for cross-built projects HOT 9
- Rewrite options combinations HOT 1
- Since master has become main, edit button leads to "page not found" HOT 2
- 404 link on the front page HOT 1
- Unexpected and undesirable Search functionality looking for "beanproperty"... HOT 5
- Scala 2 overrides a return type to an inferred type; Scala 3 does not HOT 4
- Broken link to Compatibility Reference on front page HOT 1
- Attempting to find a place to submit an issue ticket was non-trivial... HOT 1
- syntax rewrites page contradicts indentation documenation HOT 1
- Import * now means wildcard HOT 3
- `private val` in a class might not generate a field which can break reflection
- Add Monocle to the list of macro libraries
- Add link to the scala3-macros-tutorial HOT 1
- Migrating Scala 2 compiler plugins
- Maven based projects migration guide HOT 7
- Document Tasty Reader compatible features HOT 2
- add note about disabling doc generation
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scala-3-migration-guide.