diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/files/neg/t1168.check | 4 | ||||
-rw-r--r-- | test/files/neg/t1168.scala | 7 |
2 files changed, 11 insertions, 0 deletions
diff --git a/test/files/neg/t1168.check b/test/files/neg/t1168.check new file mode 100644 index 0000000000..d9b754774f --- /dev/null +++ b/test/files/neg/t1168.check @@ -0,0 +1,4 @@ +t1168.scala:6: error: Names of vals or vars may not end in `_=' + val r_= = 4 + ^ +one error found diff --git a/test/files/neg/t1168.scala b/test/files/neg/t1168.scala new file mode 100644 index 0000000000..85f2dc90d2 --- /dev/null +++ b/test/files/neg/t1168.scala @@ -0,0 +1,7 @@ +class tor { + def r_= = 4 +} + +class child extends tor { + val r_= = 4 +} |