summaryrefslogtreecommitdiff
path: root/test/files/neg/t4541.check
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/neg/t4541.check')
-rw-r--r--test/files/neg/t4541.check7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/files/neg/t4541.check b/test/files/neg/t4541.check
new file mode 100644
index 0000000000..c01226685f
--- /dev/null
+++ b/test/files/neg/t4541.check
@@ -0,0 +1,7 @@
+t4541.scala:11: error: scala.reflect.internal.Types$TypeError: variable data in class Sparse cannot be accessed in Sparse[Int]
+ Access to protected method data not permitted because
+ prefix type Sparse[Int] does not conform to
+ class Sparse$mcI$sp where the access take place
+ that.data
+ ^
+one error found \ No newline at end of file