aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/traits.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pos/traits.scala')
-rw-r--r--tests/pos/traits.scala25
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/pos/traits.scala b/tests/pos/traits.scala
new file mode 100644
index 000000000..15310d5a4
--- /dev/null
+++ b/tests/pos/traits.scala
@@ -0,0 +1,25 @@
+trait B {
+
+ val z: Int
+
+}
+
+trait T {
+
+ var x = 2
+
+ private var xp = 2
+
+ val y = 3
+
+ private val yp = 3
+
+ val z = 4
+
+ x = 4
+
+ xp = 4
+
+}
+
+class C extends T