summaryrefslogtreecommitdiff
path: root/test/files/run/t6546/A_1.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/t6546/A_1.scala')
-rw-r--r--test/files/run/t6546/A_1.scala6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/files/run/t6546/A_1.scala b/test/files/run/t6546/A_1.scala
new file mode 100644
index 0000000000..bd086c08f8
--- /dev/null
+++ b/test/files/run/t6546/A_1.scala
@@ -0,0 +1,6 @@
+final class Opt {
+ @inline def getOrElse(x: => String): String = ""
+}
+class A_1 {
+ def f(x: Opt): String = x getOrElse null
+}