diff options
Diffstat (limited to 'compiler/src/dotty/tools/dotc/util/common.scala')
-rw-r--r-- | compiler/src/dotty/tools/dotc/util/common.scala | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/compiler/src/dotty/tools/dotc/util/common.scala b/compiler/src/dotty/tools/dotc/util/common.scala new file mode 100644 index 000000000..d9798aec5 --- /dev/null +++ b/compiler/src/dotty/tools/dotc/util/common.scala @@ -0,0 +1,14 @@ +package dotty.tools.dotc +package util + +import core.Names.Name +import core.Types.WildcardType + +/** Common values hoisted out for performance */ +object common { + + val alwaysTrue = Function.const(true) _ + val alwaysZero = Function.const(0) _ + val alwaysWildcardType = Function.const(WildcardType) _ + +} |