Skip to content

Commit

Permalink
add SameParamOverloadingTest2
Browse files Browse the repository at this point in the history
  • Loading branch information
xuwei-k committed Nov 5, 2024
1 parent a0e2056 commit 88e66fc
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions input/src/main/scala-3/fix/SameParamOverloadingTest2.scala
Original file line number Diff line number Diff line change
@@ -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
}
}

0 comments on commit 88e66fc

Please sign in to comment.