File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed
compiler/src/dotty/tools/dotc/typer Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -3704,7 +3704,7 @@ class Typer(@constructorOnly nestingLevel: Int = 0) extends Namer
3704
3704
missingArgs(wtp)
3705
3705
}
3706
3706
3707
- def isContextFunctionRef (wtp : Type ): Boolean = wtp match {
3707
+ def isContextFunctionRef (wtp : Type ): Boolean = wtp.dealias match {
3708
3708
case RefinedType (parent, nme.apply, _) =>
3709
3709
isContextFunctionRef(parent) // apply refinements indicate a dependent CFT
3710
3710
case _ =>
Original file line number Diff line number Diff line change
1
+ object Test {
2
+ trait Transaction
3
+ type Transactional [T ] = (Transaction ) ?=> T
4
+
5
+ def ff (x : Int ): Transactional [Int ] = {
6
+ // summon[Transaction]
7
+ x
8
+ }
9
+
10
+ def fff (x : Int ): Transactional [Int ] = {
11
+ // summon[Transaction]
12
+ val x1 = ff(x)
13
+ x1
14
+ }
15
+
16
+ }
You can’t perform that action at this time.
0 commit comments