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 d1ea601 commit a73d29aCopy full SHA for a73d29a
compiler/src/dotty/tools/dotc/transform/SpecializeFunctions.scala
@@ -16,9 +16,12 @@ class SpecializeFunctions extends MiniPhase with InfoTransformer {
16
val phaseName = "specializeFunctions"
17
override def runsAfter = Set(ElimByName.name)
18
19
+ override def infoMayChange(sym: Symbol)(using Context): Boolean =
20
+ !sym.is(Flags.Package) && sym.isDefinedInCurrentRun
21
+
22
/** Transforms the type to include decls for specialized applys */
23
override def transformInfo(tp: Type, sym: Symbol)(using Context) = tp match {
- case tp: ClassInfo if !sym.is(Flags.Package) =>
24
+ case tp: ClassInfo =>
25
val newApplys = new mutable.ListBuffer[Symbol]
26
27
var arity = 0
0 commit comments