clauseInterleaving

scala.runtime.stdLibPatches.language.experimental.clauseInterleaving

Adds support for clause interleaving: Methods can now have as many type clauses as they like, this allows to have type bounds depend on terms: def f(x: Int)[A <: x.type]: A

Attributes

See also
Source
language.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
In this article