diff options
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) + } +} |