Skip to content

Commit

Permalink
Add some code to the Scala test to verify highlighting.
Browse files Browse the repository at this point in the history
  • Loading branch information
non committed Nov 24, 2015
1 parent 980bb30 commit 3497ae9
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test/detect/scala/default.txt
Expand Up @@ -3,6 +3,19 @@
*/
case class Person(name: String, age: Int)

abstract class Vertical extends CaseJeu
case class Haut(a: Int) extends Vertical
case class Bas(name: String, b: Double) extends Vertical

sealed trait Ior[+A, +B]
case class Left[A](a: A) extends Ior[A, Nothing]
case class Right[B](b: B) extends Ior[Nothing, B]
case class Both[A, B](a: A, b: B) extends Ior[A, B]

trait Functor[F[_]] {
def map[A, B](fa: F[A], f: A => B): F[B]
}

// beware Int.MinValue
def absoluteValue(n: Int): Int =
if (n < 0) -n else n
Expand Down

0 comments on commit 3497ae9

Please sign in to comment.