summaryrefslogtreecommitdiff
path: root/test/files/run/t0911.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2008-05-22 13:00:42 +0000
committerMartin Odersky <odersky@gmail.com>2008-05-22 13:00:42 +0000
commit0bc0b0bbc65c4ece2be76c62c1dea58d4358a4d4 (patch)
treec094dde843c92f9a72d59380bd22db31f9033b26 /test/files/run/t0911.scala
parente327bbb7bf463195c7eccaa2a399f283a849fdab (diff)
downloadscala-0bc0b0bbc65c4ece2be76c62c1dea58d4358a4d4.tar.gz
scala-0bc0b0bbc65c4ece2be76c62c1dea58d4358a4d4.tar.bz2
scala-0bc0b0bbc65c4ece2be76c62c1dea58d4358a4d4.zip
fixed #911. Added comments to <~ and ~> methods.
Diffstat (limited to 'test/files/run/t0911.scala')
-rw-r--r--test/files/run/t0911.scala9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/files/run/t0911.scala b/test/files/run/t0911.scala
new file mode 100644
index 0000000000..f4d93eb571
--- /dev/null
+++ b/test/files/run/t0911.scala
@@ -0,0 +1,9 @@
+class Foo(val bar : () => String);
+
+class IP extends {
+ val baz = "bar";
+} with Foo(() => baz);
+
+object Main extends Application{
+ (new IP).bar();
+}