File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
compiler/src/dotty/tools/dotc/transform Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ class InlineVals extends MiniPhase:
40
40
report.error(s " inline value must be pure $details" , rhs.srcPos)
41
41
case tp =>
42
42
if tp.typeSymbol.is(Opaque ) then
43
- report.error(em " `inline val` of type opaque types is not supported . \n\n To inline consider using `inline def` " , rhs)
43
+ report.error(em " The type of an `inline val` cannot be an opaque type .\n\n To inline, consider using `inline def` instead " , rhs)
44
44
else if tp.derivesFrom(defn.UnitClass ) then
45
45
report.error(em " `inline val` of type `Unit` is not supported. \n\n To inline a `Unit` consider using `inline def` " , rhs)
46
46
else if tp.derivesFrom(defn.StringClass ) || defn.ScalaValueClasses ().exists(tp.derivesFrom(_)) then
You can’t perform that action at this time.
0 commit comments