diff options
author | Martin Odersky <odersky@gmail.com> | 2005-12-06 11:31:29 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2005-12-06 11:31:29 +0000 |
commit | bcedaa4549b27000e8b0ae090f1e4be4979ffe6d (patch) | |
tree | 3e7152711adf0a99e2c168d1369b7f9688dbf3ca /test-nsc | |
parent | e9caaa6ac593fdc63d625d252863778cd7d89a16 (diff) | |
download | scala-bcedaa4549b27000e8b0ae090f1e4be4979ffe6d.tar.gz scala-bcedaa4549b27000e8b0ae090f1e4be4979ffe6d.tar.bz2 scala-bcedaa4549b27000e8b0ae090f1e4be4979ffe6d.zip |
*** empty log message ***
Diffstat (limited to 'test-nsc')
-rwxr-xr-x | test-nsc/files/neg/abstract.scala | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test-nsc/files/neg/abstract.scala b/test-nsc/files/neg/abstract.scala new file mode 100755 index 0000000000..41cfc81309 --- /dev/null +++ b/test-nsc/files/neg/abstract.scala @@ -0,0 +1,9 @@ +trait A { + type T <: A; + def baz(): A; + def bar(): T; + def foo1 = bar().bar(); + def foo2 = bar().baz(); + def foo3 = baz().bar(); + def foo4 = baz().baz(); +} |