From 0ef0f40ae31bf8a1e3d5b9c6eea7ef5b5a073192 Mon Sep 17 00:00:00 2001 From: Burak Emir Date: Wed, 24 Jan 2007 15:20:25 +0000 Subject: moved working tests to files --- test/files/pos/init.scala | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 test/files/pos/init.scala (limited to 'test/files/pos/init.scala') diff --git a/test/files/pos/init.scala b/test/files/pos/init.scala new file mode 100644 index 0000000000..c51446c804 --- /dev/null +++ b/test/files/pos/init.scala @@ -0,0 +1,14 @@ +class Foo { + + var cnt = 0 + + class Bar { + cnt = cnt + 1 + val id = cnt + } +} + +object Test extends Application { + val foo = new Foo + Console.println((new foo.Bar).id) +} -- cgit v1.2.3