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:
4040 report.error(s " inline value must be pure $details" , rhs.srcPos)
4141 case tp =>
4242 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)
4444 else if tp.derivesFrom(defn.UnitClass ) then
4545 report.error(em " `inline val` of type `Unit` is not supported. \n\n To inline a `Unit` consider using `inline def` " , rhs)
4646 else if tp.derivesFrom(defn.StringClass ) || defn.ScalaValueClasses ().exists(tp.derivesFrom(_)) then
You can’t perform that action at this time.
0 commit comments