From c52aa972a3a93851910ad2e61c36458faa3b7e27 Mon Sep 17 00:00:00 2001 From: Gilles Dubochet Date: Mon, 14 Jun 2010 14:10:43 +0000 Subject: Added test case for #432. No review. --- test/files/run/t0432.scala | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 test/files/run/t0432.scala (limited to 'test/files/run') 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) + } +} -- cgit v1.2.3