Skip to content

Commit c427046

Browse files
committed
Add test
1 parent 8408811 commit c427046

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

tests/init/pos/TypeMap.scala

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
class Type
2+
3+
abstract class TypeMap:
4+
thisMap =>
5+
def apply(tp: Type): Type
6+
def andThen(f: Type => Type): TypeMap = new TypeMap:
7+
def apply(tp: Type) = f(thisMap(tp))
8+
9+
class Test:
10+
val typeMap = new TypeMap:
11+
def apply(tp: Type) = tp
12+
println(typeMap)
13+
val n = 10

0 commit comments

Comments
 (0)