summaryrefslogtreecommitdiff
path: root/test/files/run/t0911.scala
diff options
context:
space:
mode:
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();
+}