summaryrefslogtreecommitdiff
path: root/test/files/pos/t8315b.scala
blob: d7a2bf565fb49244486ef0d363de070a284b0aeb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
object Test extends Object {
  def crash: Unit = {
    val key = ""
    try map(new F(key))
    catch { case _: Throwable => }
  };
  final def map(f: F): Any = f.apply("");
};
final class F(key: String) {
  final def apply(a: Any): Any = throw new RuntimeException(key);
}