-
The following outputs an error as expected:
```scala
import scala.annotation.tailrec
trait Outer { self =>
def hi(cond: Boolean): Boolean
trait Inner extends Outer {
@tailrec
fi…
-
```scala
trait Has[_]
trait A
trait B
trait C
trait ZLayer[-RIn, +E, +ROut]
object ZLayer {
def fromServices[A0, A1, B](f: (A0, A1) => B): ZLayer[Has[A0] with Has[A1], Nothing, Has[B]] …
-
Outgrowth of #1492, but that ticket has already been closed twice and the most important case works great. But as mentioned in its comments it would be useful and more consistent if this also worked:…
-
Given this setup:
```scala
object example extends App {
trait MonoIO[F[_]]
trait BifunctorIO[F[+_, _]]
case class IO[+A]()
object IO {
implicit val monoInstance: MonoIO[IO] = new MonoIO[I…
-
Having the @static annotation would fill one feature of the JVM not possible in Scala.
For practicality, it will help in these cases:
1. Some libraries require a static field. In particular, the andr…
-
If a test match on one of `Either[L, R]` and the other occurs should intent handle that and provide a nice assertion error instead?
Same for all unmatched errors?
-
As raised in #109, it might be a good idea to brainstorm some ways to make Enumeratum's API sleeker and nicer to use in the future.
Some unfiltered thoughts:
- Let's not worry about breaking back…
-
*Note: Sorry for the poor title choice. I can't think of a concise way to describe this more accurately. Feel free to rename of course.*
## Compiler version
3.0.0-RC1
## Minimized code
```…
-
## Minimized code
compile:
```Scala
class Test:
test("hello")
assert(1 == 1)
def test(name: String)(body: => Any) = ()
```
or more simply:
```scala
scala> def test(y: Int) …
-
~~Another unminimized one. Sorry…~~ (figured it out: see addendum at the end)
https://github.com/djspiewak/cats-effect/tree/bug/dotty-inference-issue To reproduce, `sbt ++3.0.0-M3 kernelJVM/clean k…