diff options
author | Gilles Dubochet <gilles.dubochet@epfl.ch> | 2010-06-14 14:10:43 +0000 |
---|---|---|
committer | Gilles Dubochet <gilles.dubochet@epfl.ch> | 2010-06-14 14:10:43 +0000 |
commit | c52aa972a3a93851910ad2e61c36458faa3b7e27 (patch) | |
tree | b9e68a0a2a9c1a3bac62f2c0d080fcfe05399ec1 /test/files/run/t0432.scala | |
parent | 2b458481eda4a91709b4dce0bf43def85effc428 (diff) | |
download | scala-c52aa972a3a93851910ad2e61c36458faa3b7e27.tar.gz scala-c52aa972a3a93851910ad2e61c36458faa3b7e27.tar.bz2 scala-c52aa972a3a93851910ad2e61c36458faa3b7e27.zip |
Added test case for #432. No review.
Diffstat (limited to 'test/files/run/t0432.scala')
-rw-r--r-- | test/files/run/t0432.scala | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/files/run/t0432.scala b/test/files/run/t0432.scala new file mode 100644 index 0000000000..8ba9015d81 --- /dev/null +++ b/test/files/run/t0432.scala @@ -0,0 +1,15 @@ +object Test { + type valueType = { def value: this.type } + + class StringValue(x: String) { + def value: this.type = this + } + + def m(x: valueType) = x.value + + val s = new StringValue("hei") + + def main(args: Array[String]) { + m(s) + } +} |