pmacs3/code_examples/example.scala

16 lines
209 B
Scala
Raw Permalink Normal View History

a:Array = Array(1,2,3,4)
@annotation
abstract class Square {
def alpha(x:Int, y:Int) {
}
}
trait Green {
def getColor: 'green
}
class GreenSquare(width:Int, height:Int) extends Square with Green {
}