summaryrefslogtreecommitdiff
path: root/test/files/run/sammy_cbn.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/sammy_cbn.scala')
-rw-r--r--test/files/run/sammy_cbn.scala9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/files/run/sammy_cbn.scala b/test/files/run/sammy_cbn.scala
new file mode 100644
index 0000000000..b84b2fd8e5
--- /dev/null
+++ b/test/files/run/sammy_cbn.scala
@@ -0,0 +1,9 @@
+trait F0[T] { def apply(): T }
+
+object Test extends App {
+ def delay[T](v: => T) = (v _): F0[T]
+
+ // should not fail with ClassCastException: $$Lambda$6279/897871870 cannot be cast to F0
+ // (also, should not say boe!)
+ delay(println("boe!"))
+}