diff options
Diffstat (limited to 'src/dotty/tools/dotc/core/SymDenotations.scala')
-rw-r--r-- | src/dotty/tools/dotc/core/SymDenotations.scala | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/dotty/tools/dotc/core/SymDenotations.scala b/src/dotty/tools/dotc/core/SymDenotations.scala index 2bafb7732..9299e7e63 100644 --- a/src/dotty/tools/dotc/core/SymDenotations.scala +++ b/src/dotty/tools/dotc/core/SymDenotations.scala @@ -169,6 +169,12 @@ object SymDenotations { /** Is this symbol an abstract type? */ def isAbstractType = isType && info.isRealTypeBounds + /** Is this symbol an alias type? */ + def isAliasType = isType && info.isAliasTypeBounds + + /** Is this symbol an abstract or alias type? */ + def isAbstractOrAliasType = isType & info.isInstanceOf[TypeBounds] + /** Is this definition contained in `boundary`? * Same as `ownersIterator contains boundary` but more efficient. */ |