diff options
Diffstat (limited to 'test/files/pos/gui.scala')
-rw-r--r-- | test/files/pos/gui.scala | 6 |
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)); } |