Skip to content

Commit dfdf9a1

Browse files
committed
Type-printer tests: simplify per review comment
1 parent 0333dd6 commit dfdf9a1

File tree

1 file changed

+10
-10
lines changed
  • compiler/test-resources/type-printer

1 file changed

+10
-10
lines changed
Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
scala> val toInt: Any => Int = new { def apply(a: Any) = 1; override def toString() = "<func1>" }
2-
val toInt: Any => Int = <func1>
3-
scala> val hoFun: (Int => Int) => Int = new { def apply(a: Int => Int) = 1; override def toString() = "<func2>" }
4-
val hoFun: (Int => Int) => Int = <func2>
5-
scala> val curriedFun: Int => (Int => Int) = new { def apply(a: Int) = _ => 1; override def toString() = "<func3>" }
6-
val curriedFun: Int => Int => Int = <func3>
7-
scala> val tupFun: ((Int, Int)) => Int = new { def apply(a: (Int, Int)) = 1; override def toString() = "<func4>" }
8-
val tupFun: ((Int, Int)) => Int = <func4>
9-
scala> val binFun: (Int, Int) => Int = new { def apply(a: Int, b: Int) = 1; override def toString() = "<func5>" }
10-
val binFun: (Int, Int) => Int = <func5>
1+
scala> def toInt: Any => Int = ???
2+
def toInt: Any => Int
3+
scala> def hoFun: (Int => Int) => Int = ???
4+
def hoFun: (Int => Int) => Int
5+
scala> def curriedFun: Int => (Int => Int) = ???
6+
def curriedFun: Int => Int => Int
7+
scala> def tupFun: ((Int, Int)) => Int = ???
8+
def tupFun: ((Int, Int)) => Int
9+
scala> def binFun: (Int, Int) => Int = ???
10+
def binFun: (Int, Int) => Int

0 commit comments

Comments
 (0)