File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed
compiler/src/dotty/tools/dotc/ast Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -98,6 +98,9 @@ final class TreeTypeMap(
98
98
case ann => ann
99
99
}
100
100
res
101
+ case tdef @ LambdaTypeTree (tparams, body) =>
102
+ val (tmap1, tparams1) = transformDefs(tparams)
103
+ cpy.LambdaTypeTree (tdef)(tparams1, tmap1.transform(body))
101
104
case blk @ Block (stats, expr) =>
102
105
val (tmap1, stats1) = transformDefs(stats)
103
106
val expr1 = tmap1.transform(expr)
Original file line number Diff line number Diff line change
1
+ trait Foo {
2
+ def apply [~> [_,_]](x : Int ~> Int ): Int ~> Int
3
+ }
4
+
5
+ object Foo {
6
+ inline def foo : Foo = new Foo {
7
+ def apply [~> [_,_]](x : Int ~> Int ): Int ~> Int = x
8
+ }
9
+
10
+ def main (args : Array [String ]): Unit = {
11
+ val x = foo((x : Int ) => x)
12
+ }
13
+ }
You can’t perform that action at this time.
0 commit comments