diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2012-11-06 22:23:09 +0100 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2012-11-06 22:31:50 +0100 |
commit | 6902da3168c02448387edc000dedfe97ef5f7cd9 (patch) | |
tree | 4110e85872ce34f79c73bef7e5b6a2e3130b0a8f /test/files/neg/t6539.check | |
parent | 3b68b45a200087104a1ac2de7c4b86635023fd4d (diff) | |
download | scala-6902da3168c02448387edc000dedfe97ef5f7cd9.tar.gz scala-6902da3168c02448387edc000dedfe97ef5f7cd9.tar.bz2 scala-6902da3168c02448387edc000dedfe97ef5f7cd9.zip |
SI-6539 Annotation for methods unfit for post-typer ASTs
Motivated by the `.value` method in the SBT task-syntax branch,
which should only be called within the context of the argument
to a setting initialization macro.
The facility is akin to a fatal deprecation.
Diffstat (limited to 'test/files/neg/t6539.check')
-rw-r--r-- | test/files/neg/t6539.check | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/files/neg/t6539.check b/test/files/neg/t6539.check new file mode 100644 index 0000000000..a5d5a7244d --- /dev/null +++ b/test/files/neg/t6539.check @@ -0,0 +1,10 @@ +Test_2.scala:2: error: reference to method cto in object M should not survive typechecking: cto may only be used as an argument to m + M.cto // error + ^ +Test_2.scala:3: error: reference to method cto in object M should not survive typechecking: cto may only be used as an argument to m + M.m(M.cto, ()) // error + ^ +Test_2.scala:5: error: reference to method cto in object M should not survive typechecking: cto may only be used as an argument to m + M.cto // error + ^ +three errors found |