aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/config/Config.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2016-06-07 13:28:55 +0200
committerMartin Odersky <odersky@gmail.com>2016-07-11 13:35:01 +0200
commit463e99a48996fbf7148aa62ec6d2f8b28000d2d4 (patch)
tree8e82c76c2de8b671dc3c2036a217a44d272c1a78 /src/dotty/tools/dotc/config/Config.scala
parent68e73e854e04f7bea20a8c95637729bf6889e17d (diff)
downloaddotty-463e99a48996fbf7148aa62ec6d2f8b28000d2d4.tar.gz
dotty-463e99a48996fbf7148aa62ec6d2f8b28000d2d4.tar.bz2
dotty-463e99a48996fbf7148aa62ec6d2f8b28000d2d4.zip
Optionally, check kinds match for & and |
Optionally, check kinds of operands of & and | match.
Diffstat (limited to 'src/dotty/tools/dotc/config/Config.scala')
-rw-r--r--src/dotty/tools/dotc/config/Config.scala5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/dotty/tools/dotc/config/Config.scala b/src/dotty/tools/dotc/config/Config.scala
index 63ecdc76d..1c22329f1 100644
--- a/src/dotty/tools/dotc/config/Config.scala
+++ b/src/dotty/tools/dotc/config/Config.scala
@@ -79,6 +79,11 @@ object Config {
*/
final val checkProjections = false
+ /** If this flag is set it is checked that &/| only apply to types
+ * that are either both hk types or both * types.
+ */
+ final val checkKinds = true
+
/** The recursion depth for showing a summarized string */
final val summarizeDepth = 2