summaryrefslogtreecommitdiff
path: root/test/files/neg/t2796.check
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/neg/t2796.check')
-rw-r--r--test/files/neg/t2796.check4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/files/neg/t2796.check b/test/files/neg/t2796.check
new file mode 100644
index 0000000000..aeb18497ed
--- /dev/null
+++ b/test/files/neg/t2796.check
@@ -0,0 +1,4 @@
+t2796.scala:7: error: Implementation restriction: early definitions in traits are not initialized before the super class is initialized.
+ val abstractVal = "T1.abstractVal" // warn
+ ^
+one error found