A

class A
package tests.snippetCompilerTests
trait Snippet0 { self: A =>
  val A = self
  import scala.collection.Seq
  
  def a = 2
  val x = 1 + List()
  a
  
  try {
   2+3
  }
  
  /*
   Huge comment
  */
  val xd: String = 42
  
  def a(i: Int): Boolean = i match // This is a function
   case 1 => true
  
  val b: Int = 2.3 /* Also quite a big comment */
  
  val d: Long = "asd"
}
package tests.snippetCompilerTests
trait Snippet0 { self: A =>
  val A = self
  def a = 2
  val x = 1 + List()
  a
}
package tests.snippetCompilerTests
trait Snippet0 { self: A =>
  val A = self
  def a = 2
}
def a = 3
a()
Source:
snippetCompilerTests.scala
class Object
trait Matchable
class Any

Type members

Classlikes