From 5029743db277680c0cb8b1a286424b899775f6ca Mon Sep 17 00:00:00 2001 From: xuwei-k <6b656e6a69@gmail.com> Date: Tue, 5 Nov 2024 16:50:03 +0900 Subject: [PATCH] add SameParamOverloadingTest2 --- .../scala-3/fix/SameParamOverloadingTest2.scala | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 input/src/main/scala-3/fix/SameParamOverloadingTest2.scala diff --git a/input/src/main/scala-3/fix/SameParamOverloadingTest2.scala b/input/src/main/scala-3/fix/SameParamOverloadingTest2.scala new file mode 100644 index 0000000..11f4d62 --- /dev/null +++ b/input/src/main/scala-3/fix/SameParamOverloadingTest2.scala @@ -0,0 +1,14 @@ +/* +rule = SameParamOverloading + */ +package fix + +import scala.reflect.ClassTag + +object SameParamOverloadingTest2 { + + abstract class A1 { + def x1[A](a: A)(using ClassTag[A]): Int // assert: SameParamOverloading + def x1[A](b: A): String // assert: SameParamOverloading + } +}