bug
bug copied to clipboard
Scala 2 bug reports only. Please, no questions — proper bug reports only.
You probably would label this as an enhancement rather than a defect, but it bit me really hard in conjunction with #4377. ```scala trait Cap trait Op[C
## reproduction steps This is a short example: ```scala import scala.concurrent._ trait TestModule { implicit val ec: ExecutionContext } class ClassA()(implicit ec: ExecutionContext) {} trait Trait1 { this: TestModule =>...
I am constantly having things like: ``` [error] /home/antonkulaga/denigma/processors/main/src/main/scala/org/clulab/swirl2/Reader.scala:173: type arguments [?,Iterable[Any] with Int => Any with scala.collection.generic.Subtractable[_ >: (Int, Int, String) with Int, Iterable[Any] with Int => Any with...
I feel a little guilty about posting this. The code is pretty unreasonable. In any case... The same code compiles in 2.10.4. ```scala class Fields { trait Field { type...
## Reproduction steps Scala version: 2.13.16 ```scala scala> try { ((0L).until(Int.MaxValue.toLong + 1)).iterator } catch { case ex: IllegalArgumentException => ex.printStackTrace } java.lang.IllegalArgumentException: More than Int.MaxValue elements. at scala.collection.immutable.NumericRange$.check$1(NumericRange.scala:433) at...
The following code worked flawlessly on 2.9: ```scala object japi { @deprecated("Do not use this directly, use subclasses of this", "2.0") class UnitFunctionBridge[-T] extends (T ⇒ BoxedUnit) { override final...
https://github.com/scala/scala/commit/a864ae04c48b9be94b00345668e8ecaf85fc24da (added between 2.13.0-M5 and 2.13.0-RC1) introduces a `def empty()` on `scala.collection.Iterable`. Many (immutable) implementations of `Iterable`, such as `scala.collection.immutable.List`, have a companion object with a `val empty`. On 2.13.0-M5...
Everything after `import Foo._; object Foo` fails, in at least Scala 2.10.6, 2.11.8, 2.11.11 and 2.12.2. ``` scala> :paste // Entering paste mode (ctrl-D to finish) import Foo._ object Foo...
```scala Welcome to Scala 2.11.8 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_102). Type in expressions for evaluation. Or try :help. scala> :paste // Entering paste mode (ctrl-D to finish) trait...
The following code doesn't compile and cause 'illegal cyclic reference' compile error ```scala object IllegalCyclicReference { trait Problem { def x: X // If we uncomment below , we get...