Skip to content

Commit f87f72c

Browse files
authored
Fix typo
1 parent d7fcea3 commit f87f72c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/inlines/Inlines.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,7 @@ object Inlines:
634634
if !Inlines.mightRefineInlineVal(mdef, sym) then
635635
return tp
636636

637-
// Only refine if the explicit type is a primitive value types and String.
637+
// Only refine if the explicit type is a primitive value type or String.
638638
// We don't include opaque types. See tests/neg/i13851b.scala.
639639
val tpSym = tp.dealiasKeepOpaques.typeSymbol
640640
if !tpSym.isPrimitiveValueClass && tpSym != defn.StringClass then

0 commit comments

Comments
 (0)