summaryrefslogtreecommitdiff
path: root/test/files/neg/bug515.scala
diff options
context:
space:
mode:
authorGilles Dubochet <gilles.dubochet@epfl.ch>2006-01-26 09:32:34 +0000
committerGilles Dubochet <gilles.dubochet@epfl.ch>2006-01-26 09:32:34 +0000
commitdceda6e34775cf59ebcd94b7d47427a8e67c3e25 (patch)
treed4df8cd5c865c01c767ef1888608a1a299ebddc5 /test/files/neg/bug515.scala
parent3d222bdcde70fd1c87bab840ae521bf51a811d5d (diff)
downloadscala-dceda6e34775cf59ebcd94b7d47427a8e67c3e25.tar.gz
scala-dceda6e34775cf59ebcd94b7d47427a8e67c3e25.tar.bz2
scala-dceda6e34775cf59ebcd94b7d47427a8e67c3e25.zip
Added Martin's additional test cases.
Diffstat (limited to 'test/files/neg/bug515.scala')
-rwxr-xr-xtest/files/neg/bug515.scala8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/files/neg/bug515.scala b/test/files/neg/bug515.scala
new file mode 100755
index 0000000000..34f965231c
--- /dev/null
+++ b/test/files/neg/bug515.scala
@@ -0,0 +1,8 @@
+object Test extends Application {
+ class Truc {
+ def getMachin() = "machin"
+ def getMachinAsTruc() = this
+ }
+ val file = new Truc
+ val parent: Truc = file.getMachin
+}