bug
bug copied to clipboard
Scala 2 bug reports only. Please, no questions — proper bug reports only.
The word "tail" appears only twice in the SLS, both as method names in example 5.3.3. So it appears that the current (rather delicate!) behaviour of tail recursion is in...
Here is a snippet to illustrate the problem: ```scala class Foo[A] { def compose(a: Foo[A]): Foo[A] = new Foo[A] def compose(b: Bar[A]): Bar[A] = new Bar[A] // non overloaded method...
## reproduction steps using Scala (2.12.11, 2.13.4), The following code defined inside a library: ```scala trait OtherType class Foo { def bar[T](t: T): T with OtherType = ??? } ```...
## reproduction steps using Scala (2.13.6), ```scala trait ScalaTrait { def foo1: String def foo2: String = "default foo value 2" val val1: String val val2: String = "default val...
```scala package p package u { trait T { private[u] def f = 1 } } package v { class C extends u.T } ``` generates, after mixin: ``` [[syntax...
## Reproduction steps Scala version: 2.12.17, 2.13.8 ```scala scala> class C(a: Int, b: Int)(c: Int)(implicit d: DummyImplicit) defined class C scala> def i = 1; class D extends C(b =...
## Reproduction steps Scala version: 2.13.8 and 2.11.12 ~~Example 1~~ [INVALID] ```scala sealed trait MyTrait { def a: Int } case class MyClass ( a: Int ) extends MyTrait object...
The compiler rejects code which should be perfectly valid. Using type ascription to upcast the value is a workaround for this. ```scala sealed trait Key case object SilverKey extends Key...
Sometimes it's necessary to pass parameters to macros untyped (e.g. if a parameter is a closure that refers to variables that are introduced by a macro). However, current implementation doesn't...
(No description for SI-5920.)