We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 212b8af commit 6137fd5Copy full SHA for 6137fd5
compiler/src/dotty/tools/dotc/core/Types.scala
@@ -143,7 +143,7 @@ object Types {
143
final def exists: Boolean = this.ne(NoType)
144
145
/** This type, if it exists, otherwise `that` type */
146
- def orElse(that: => Type): Type = if (exists) this else that
+ inline def orElse(inline that: => Type): Type = if (exists) this else that
147
148
/** Is this type a value type? */
149
final def isValueType: Boolean = this.isInstanceOf[ValueType]
0 commit comments