This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package play.scalasupport.core | |
| import play._ | |
| import play.test._ | |
| import play.vfs.{VirtualFile => VFile} | |
| import play.exceptions._ | |
| import play.classloading.ApplicationClasses.ApplicationClass | |
| import scala.tools.nsc._ | |
| import scala.tools.nsc.reporters._ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| trait Foo{ | |
| val id: String | |
| } | |
| trait SubFoo extends Foo{ | |
| val id = "1234" | |
| } | |
| abstract class Bar{ | |
| def save[T <: Foo](foo: T): Unit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| case class Circle(x: Double, y: Double, radius: Double) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| case class Circle(x: Double, y: Double, radius: Double) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| case class CircleAtOrigin(override val radius: Double) extends Circle(0, 0, radius) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| object Circle{ | |
| def circleAtOrigin = Circle(0, 0, _: Double) | |
| } | |
| case class Circle(x: Double, y: Double, radius: Double) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def circleAtOrigin = Circle(0, 0, _: Double) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| circleAtOrigin(25) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| object Rectangle{ | |
| def rectangleAtOrigin = new Rectangle(0, 0, _: Double, _:Double) | |
| } | |
| class Rectangle(x1: Double, y1: Double, x2: Double, y2: Double) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def fiftyCircle = Circle(_:Double, _:Double, 50) |
OlderNewer