Skip to content

Commit 20a9f69

Browse files
committed
Turn off inline
1 parent 1af3894 commit 20a9f69

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

compiler/src/dotty/tools/dotc/transform/Memoize.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ import Decorators._
106106
def adaptToField(tree: Tree): Tree =
107107
if (tree.isEmpty) tree else tree.ensureConforms(field.info.widen)
108108

109-
val NoFieldNeeded = Lazy | Deferred | JavaDefined | (if (ctx.settings.YnoInline.value) EmptyFlags else Inline)
109+
val NoFieldNeeded = Lazy | Deferred | JavaDefined | (if (true) EmptyFlags else Inline)
110110

111111
def isErasableBottomField(cls: Symbol): Boolean = {
112112
// TODO: For Scala.js, return false if this field is in a js.Object unless it is an ErasedPhantomClass.

compiler/src/dotty/tools/dotc/typer/Typer.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1279,7 +1279,7 @@ class Typer extends Namer with TypeAssigner with Applications with Implicits wit
12791279
}
12801280
val sym = vdef.symbol
12811281
sym.info match {
1282-
case info: ConstantType if isFinalInlinableVal(sym) && !ctx.settings.YnoInline.value => sym.setFlag(Inline)
1282+
case info: ConstantType if isFinalInlinableVal(sym) && false => sym.setFlag(Inline)
12831283
case _ =>
12841284
}
12851285
}
@@ -2140,7 +2140,7 @@ class Typer extends Namer with TypeAssigner with Applications with Implicits wit
21402140
checkInlineConformant(tree, "argument to inline parameter")
21412141
if (Inliner.hasBodyToInline(tree.symbol) &&
21422142
!ctx.owner.ownersIterator.exists(_.isInlineMethod) &&
2143-
!ctx.settings.YnoInline.value &&
2143+
false &&
21442144
!ctx.isAfterTyper &&
21452145
!ctx.reporter.hasErrors)
21462146
adapt(Inliner.inlineCall(tree, pt), pt)

0 commit comments

Comments
 (0)