bug
bug copied to clipboard
Scala 2 bug reports only. Please, no questions — proper bug reports only.
Test cases derived from https://github.com/scala/bug/issues/11289: ``` class Test { def akkaResponseTimeLoggingFunction(a: String)(x: Int)(y: Boolean): Unit = ??? // should compile without expected type akkaResponseTimeLoggingFunction("a") _ akkaResponseTimeLoggingFunction("a")(_)(_) // eta-expansion only happens...
For example, for: ```scala public void foo() throws E2 {} ``` ClassfileParser will emit throws[Exception](classOf[java.lang.Exception]) instead of a correct existential type.
from `neg/sammy_restrictions.scala`: ``` abstract class NoAbstract abstract class OneAbstract { def ap(a: Int): Any } abstract class DerivedOneAbstract extends OneAbstract abstract class SelfTp { self: NoAbstract => def ap(a: Int):...
The following code: ```scala import scala.language.reflectiveCalls def double[T](x: Any{def * (arg0: Int): T}) = x * 2 double[Int](4) ``` causes the following exception: ```scala java.lang.NoSuchMethodException: java.lang.Integer.$times(int) at java.lang.Class.getMethod(Class.java:1778) at .reflMethod$Method1(:18)...
I try to use JSR223 code using bindings parameters (using JMeter): ``` Bindings bindings = engine.createBindings(); final Logger logger = LoggerFactory.getLogger(JSR223_INIT_FILE); bindings.put("log", logger); // $NON-NLS-1$ (this name is fixed) engine.eval(reader,...
See the following paste. It appears that the inlining of case class constructors/deconstructors fails to invoke the constructor for the companion object, which is counter to the specification. ``` Welcome...
``` $ scala Welcome to Scala 2.12.4 (OpenJDK 64-Bit Server VM, Java 1.8.0_151). Type in expressions for evaluation. Or try :help. scala> new p.S().s res0: String = "" scala> :pa...
It would be useful if macro invocations could get a free pass on warnings before expansion. That way, a build can run with warnings turned high and fatal, even if...
for top-level object definitions the scala compiler generates two classes (two classfiles), on named "ObjectName$$" (containing the actual implementation) and a "mirror class" named "ObjectName" wich contains static methods that...
```scala trait Foo trait Super { def bar(foo: Foo): AnyRef = null } object Blub extends Super { def bar()(implicit foo: Foo): Int = throw new RuntimeException("BAM!") def main(args: Array[String]):...