summaryrefslogtreecommitdiff
path: root/test/files/run/t4875.check
blob: f7609d5ca57543bc30395c366dfbd3702405c2ab (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Type in expressions to have them evaluated.
Type :help for more information.

scala> 

scala> import scala.reflect.Code
import scala.reflect.Code

scala> def codeOf[A](code: Code[A]) = code
codeOf: [A](code: scala.reflect.Code[A])scala.reflect.Code[A]

scala> codeOf((x: Iterable[_]) => throw new Exception)
res0: scala.reflect.Code[Iterable[_] => Nothing] = Code(tree = ((x: Iterable[Any]) => throw new scala.`package`.Exception()), manifest = scala.Function1[scala.collection.Iterable[Any], Nothing])

scala> 

scala>