Scala Buggabot
Scala Buggabot
I was hoping to deprecate a package object ("what? already?") since the whole package has moved and that would be the cleanest way to deprecate the forwarding stubs, but: ```scala...
This snippet fails with a NPE as expected: ``` class A { class B // 1 } val a: A = null val b = new a.B // 2 ```...
```scala Welcome to Scala 2.12.1 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_102). Type in expressions for evaluation. Or try :help. scala> @deprecated("Foo is deprecated", "1.0.0") | implicit class Foo(i: Int)...
I keep finding that I'm defining the same Scaladoc macros at the beginning of each class/object/trait definition. For instance, I like to use a macro for the name of the...
Something is up with these; I swear some of them used to warn. Really, I can't spot "Nil == 0" ? ``` scala> val x = scala.collection.mutable.Map[String, List[String]]() withDefaultValue Nil...
This is with Scala 2.8.0.RC3 Steps to reproduce: in p/Base.java ```java package p; public class Base { protected void test() { } } ``` in test.scala ```scala trait Ext {...
This compiles and works in 2.11.8, does not compile in 2.12. ```scala trait Foo extends Any { val self: String } final class Bar(val self: String) extends AnyVal with Foo...
```scala class M(val t: Int) extends AnyVal { def lazyString = { object X () => X } } ``` ``` error: no-symbol does not have an owner while compiling:...
I came across this scalac bug while attempting js.Dynamic.literal(map.toSeq: _*) // Error: applyDynamic does not support passing a vararg parameter It turned out that any call to applyDynamic will bug...
Proposal: Add a compiler flag that makes it easier to know when an AnyVal allocation occurs. AnyVals can radically improve performance, but allocations can occur in surprising places (removing any...