diff options
author | Martin Odersky <odersky@gmail.com> | 2006-06-15 17:01:56 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2006-06-15 17:01:56 +0000 |
commit | d8dd12a5515e349b61e79d2111b9d54743c0c3c7 (patch) | |
tree | f1bb871421547a165997efc305cb799befa47987 /test/pending | |
parent | 4857648d274b0ce0928b57be667e423547962d9d (diff) | |
download | scala-d8dd12a5515e349b61e79d2111b9d54743c0c3c7.tar.gz scala-d8dd12a5515e349b61e79d2111b9d54743c0c3c7.tar.bz2 scala-d8dd12a5515e349b61e79d2111b9d54743c0c3c7.zip |
Fixed type inference problem
Diffstat (limited to 'test/pending')
-rwxr-xr-x | test/pending/pos/init.scala | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/pending/pos/init.scala b/test/pending/pos/init.scala new file mode 100755 index 0000000000..c51446c804 --- /dev/null +++ b/test/pending/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) +} |