aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/pos/t419.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/untried/pos/t419.scala')
-rw-r--r--tests/untried/pos/t419.scala11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/untried/pos/t419.scala b/tests/untried/pos/t419.scala
new file mode 100644
index 000000000..65dcb0435
--- /dev/null
+++ b/tests/untried/pos/t419.scala
@@ -0,0 +1,11 @@
+trait Bar {
+ class Config {}
+ var config: Config; // aha, traits can have variables?
+}
+
+object Foo extends Bar {
+
+ class FooConfig extends Config;
+ var config: Config = new FooConfig() // or not
+
+}