Back to Scala3

Index

scaladoc-testcases/docs/_docs/index.md

3.8.3573 B
Original Source
scala
val someVariable: Int = 2
scala
trait RenderingContext
class Renderer(using RenderingContext)
val renderer: Renderer = Renderer()
scala
  trait Ord:
    type Self

  trait SemiGroup:
    type Self
    extension (x: Self) def combine(y: Self): Self
scala
def exampleShouldError(input: Option[String]): Unit = 
  input match
    case Some("foo") => ???   
scala
def exampleShouldWarn(input: Option[String]): Unit = 
  input match
    case Some("foo") => ???