add scala code example

--HG--
branch : pmacs2
This commit is contained in:
Erik Osheim 2010-09-27 01:06:10 -04:00
parent e444203b81
commit 6354d80dab
1 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,15 @@
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 {
}