-
As a part of my research, I mine public Scala repositories to identify certain coding patterns. For this I have set up pipeline that fetches sbt-based Scala projects and compiles them. To safe time I …
-
Using the jar provided with the source:
```
➜ jsonbmark scala -cp ./lib/thyme.jar
Welcome to Scala version 2.10.2 (Java HotSpot(TM) 64-Bit Server VM, Java 1.7.0).
Type in expressions to have them e…
-
## Compiler version
3.3.1
## Minimized code
Not minimized yet.
1. clone incubator-pekko
2. change the scala3 version to 3.3.1
3. compile the `multi-node-testkit` with scala 3.3.1
## Out…
-
## Compiler version
348729e88e7
## Minimized code
```Scala
// tests/pos/tasty-no-address.scala
import scala.annotation.Annotation
class myRefined[T](f: T => Boolean) extends Annotation
…
-
Attempting to run this code in the Repl:
```scala
implicit class Foo[T
-
Reported by Jerzy Müller: https://groups.google.com/d/topic/scala-internals/fSFBe9ebiqw/discussion
It works on 2.10.4.
```scala
[info] Starting scala interpreter...
[info]
Welcome to Scala ver…
-
``` scala
// Global.scala
class Global
// Analyzer.scala
trait Analyzer extends AnyRef with StdAttachments {
val global : Global
}
// StdAttachments.scala
trait StdAttachments { self: Analyzer =>
…
-
It appears to me that recursive data types are not well-supported. The following code leads to an infinite loop in the typer phase of the Scala compiler:
```
import upickle._
sealed case class IntTre…
-
## Compiler version
3.4.1-RC2
## Minimized code
Use `-indent -rewrite` on:
```Scala
@main
def main: Unit = {
val x = 0
x match {
case 0 =>
case 1 =>
case 2 =>
}
…
-
The Scala backend currently has multiple examples of rules that use wrapper programs written in Scala or Java to accomplish build-related tasks. For example, (1) the Scala protobuf codegen rules use a…
tdyas updated
2 years ago