summaryrefslogtreecommitdiff
path: root/test/files/jvm/named-args-in-order/Test.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/jvm/named-args-in-order/Test.scala')
-rw-r--r--test/files/jvm/named-args-in-order/Test.scala10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/files/jvm/named-args-in-order/Test.scala b/test/files/jvm/named-args-in-order/Test.scala
new file mode 100644
index 0000000000..36b9cbc1d1
--- /dev/null
+++ b/test/files/jvm/named-args-in-order/Test.scala
@@ -0,0 +1,10 @@
+import scala.tools.partest.BytecodeTest
+
+object Test extends BytecodeTest {
+ def show: Unit = {
+ val classNode = loadClassNode("SameBytecode")
+ def sameAsA(meth: String) =
+ sameBytecode(getMethod(classNode, "a"), getMethod(classNode, meth))
+ Seq("b", "c", "d").foreach(sameAsA)
+ }
+}