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 d7fcea3 commit f87f72cCopy full SHA for f87f72c
compiler/src/dotty/tools/dotc/inlines/Inlines.scala
@@ -634,7 +634,7 @@ object Inlines:
634
if !Inlines.mightRefineInlineVal(mdef, sym) then
635
return tp
636
637
- // Only refine if the explicit type is a primitive value types and String.
+ // Only refine if the explicit type is a primitive value type or String.
638
// We don't include opaque types. See tests/neg/i13851b.scala.
639
val tpSym = tp.dealiasKeepOpaques.typeSymbol
640
if !tpSym.isPrimitiveValueClass && tpSym != defn.StringClass then
0 commit comments