summaryrefslogtreecommitdiff
path: root/test/files/run/macro-vampire-false-warning.flags
diff options
context:
space:
mode:
authorEugene Burmako <xeno.by@gmail.com>2013-08-31 21:44:34 +0200
committerEugene Burmako <xeno.by@gmail.com>2013-10-04 10:12:48 +0200
commitb747209b10793a88ce09f4b89d90dd4c50b05896 (patch)
treeebdd3bb2d011c62f056afb41a6d041078e7246a6 /test/files/run/macro-vampire-false-warning.flags
parent90a312669b37d6e3e3f08685953ded24759e6102 (diff)
downloadscala-b747209b10793a88ce09f4b89d90dd4c50b05896.tar.gz
scala-b747209b10793a88ce09f4b89d90dd4c50b05896.tar.bz2
scala-b747209b10793a88ce09f4b89d90dd4c50b05896.zip
no longer warns on calls to vampire macros
As eloquently elaborated and cleverly named by Travis Brown, macros defined in structural types are useful: http://meta.plasm.us/posts/2013/07/12/vampire-methods-for-structural-types/. However, since such macros are on the intersection of a number of language features, as usual, there are bugs. This commit fixes an unwanted interaction of macros defined in structural types with the scala.language.reflectiveCalls guard. Since macro calls aren't going to be carried to runtime, there's no need to warn about them.
Diffstat (limited to 'test/files/run/macro-vampire-false-warning.flags')
-rw-r--r--test/files/run/macro-vampire-false-warning.flags1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/files/run/macro-vampire-false-warning.flags b/test/files/run/macro-vampire-false-warning.flags
new file mode 100644
index 0000000000..e8fb65d50c
--- /dev/null
+++ b/test/files/run/macro-vampire-false-warning.flags
@@ -0,0 +1 @@
+-Xfatal-warnings \ No newline at end of file