File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed
compiler/src/dotty/tools/dotc/core Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -803,7 +803,7 @@ object SymDenotations {
803
803
def isSkolem : Boolean = name == nme.SKOLEM
804
804
805
805
def isInlineMethod (implicit ctx : Context ): Boolean =
806
- is(InlineMethod , butNot = AccessorOrSynthetic ) &&
806
+ is(InlineMethod , butNot = Accessor ) &&
807
807
name != nme.unapply // unapply methods do not count as inline methods
808
808
// we need an inline flag on them only do that
809
809
// reduceProjection gets access to their rhs
Original file line number Diff line number Diff line change
1
+ object Test {
2
+ class Test {
3
+ class Context (val t : Boolean )
4
+
5
+ type Contextual [T ] = given Context => T
6
+
7
+ inline def f (): Contextual [Boolean ] = the[Context ].t
8
+
9
+ implied ctx for Context = new Context (true )
10
+
11
+ f()
12
+ }
13
+ }
You can’t perform that action at this time.
0 commit comments