Skip to content

Commit f821732

Browse files
Backport "Add regression test for issue 20498" to LTS (#21068)
Backports #20570 to the LTS branch. PR submitted by the release tooling. [skip ci]
2 parents 103e077 + c0d640b commit f821732

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

tests/pos/i20498/impl.scala

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
package demo.debug
2+
import demo.util._
3+
class Impl:
4+
"".tap()

tests/pos/i20498/ops.scala

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
package demo.util
2+
trait Ops:
3+
final implicit class Ops[A](private val self: A):
4+
def tap(): Unit = ()

tests/pos/i20498/package.scala

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
package demo
2+
package object util extends Ops

0 commit comments

Comments
 (0)