Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions docs/_spec/12-the-scala-standard-library.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,7 @@ abstract class Any {
def isInstanceOf[a]: Boolean

/** Type cast; needs to be inlined to work as given */ */
def asInstanceOf[A]: A = this match {
case x: A => x
case _ => if (this eq null) this
else throw new ClassCastException()
}
def asInstanceOf[A]: A
}

/** The root class of all value types */
Expand Down