From 6354d80dab1c3e5886c9d9bdf7000cf7f36d9362 Mon Sep 17 00:00:00 2001 From: Erik Osheim Date: Mon, 27 Sep 2010 01:06:10 -0400 Subject: [PATCH] add scala code example --HG-- branch : pmacs2 --- code_examples/example.scala | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 code_examples/example.scala diff --git a/code_examples/example.scala b/code_examples/example.scala new file mode 100644 index 0000000..0252057 --- /dev/null +++ b/code_examples/example.scala @@ -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 { + +}