summaryrefslogtreecommitdiff
path: root/test/files/pos/gui.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2011-02-21 18:32:06 +0000
committerMartin Odersky <odersky@gmail.com>2011-02-21 18:32:06 +0000
commitd610e36fa53fcd8b6361293936af057b8563c33b (patch)
treea28747cc29fc1d91b506aa474fb853521ed1224d /test/files/pos/gui.scala
parent3621100820d0541e4863ceed8523b887894069e1 (diff)
downloadscala-d610e36fa53fcd8b6361293936af057b8563c33b.tar.gz
scala-d610e36fa53fcd8b6361293936af057b8563c33b.tar.bz2
scala-d610e36fa53fcd8b6361293936af057b8563c33b.zip
Renamed Application to App.
Diffstat (limited to 'test/files/pos/gui.scala')
-rw-r--r--test/files/pos/gui.scala6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/files/pos/gui.scala b/test/files/pos/gui.scala
index 9d87d1b869..3b4f49cf55 100644
--- a/test/files/pos/gui.scala
+++ b/test/files/pos/gui.scala
@@ -82,18 +82,18 @@ object GUI {
object GUIClient {
- class Application {
+ class App {
def quit() { Console.println("application exited") }
}
- class QuitButton (scr: Screen, p: Geom.Point, name: String, a: Application)
+ class QuitButton (scr: Screen, p: Geom.Point, name: String, a: App)
extends GUI.Button(scr, p, name) {
def doit() { a.quit() }
}
def main(args: Array[String]) {
val b = new QuitButton(
- DummyScreen, Geom.Point(1, 1), "quit", new Application);
+ DummyScreen, Geom.Point(1, 1), "quit", new App);
b.draw();
b.enable(true).mouseDown(Geom.Point(1, 2));
}