File tree 2 files changed +18
-2
lines changed
compiler/src/dotty/tools/dotc/typer
2 files changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -1351,8 +1351,8 @@ class Namer { typer: Typer =>
1351
1351
// Eagerly make the body inlineable. `registerInlineInfo` does this lazily
1352
1352
// but it does not get evaluated during typer as the forwarder we are creating
1353
1353
// is already typed.
1354
- val inlinableRhs = PrepareInlineable .makeInlineable(rhs)(using forwarderCtx )
1355
- PrepareInlineable .registerInlineInfo(forwarder, inlinableRhs)(using forwarderCtx )
1354
+ val inlinableRhs = PrepareInlineable .makeInlineable(rhs)(using ctx )
1355
+ PrepareInlineable .registerInlineInfo(forwarder, inlinableRhs)(using ctx )
1356
1356
inlinableRhs
1357
1357
else
1358
1358
rhs
Original file line number Diff line number Diff line change
1
+ import scala .quoted .*
2
+
3
+ package jam {
4
+ trait JamCoreDsl {
5
+ implicit inline def defaultJamConfig : this .JamConfig =
6
+ new JamConfig (brewRecRegex = " .*" )
7
+ class JamConfig (val brewRecRegex : String )
8
+ inline def brew (implicit inline config : JamConfig ): Unit = ???
9
+ }
10
+ private object internal extends JamCoreDsl
11
+ export internal ._
12
+ }
13
+
14
+ object test {
15
+ jam.brew
16
+ }
You can’t perform that action at this time.
0 commit comments