Skip to content

Commit e0ef928

Browse files
authored
Merge pull request #4257 from dotty-staging/fix-ci-warning
Fix case-insensitive-fs warning in test
2 parents b1d9162 + e0038b3 commit e0ef928

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/pos/overloaded_ho_fun.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import scala.math.Ordering
22
import scala.reflect.ClassTag
33

4-
trait Sam { def apply(x: Int): String }
4+
trait MonoSam { def apply(x: Int): String }
55
trait SamP[U] { def apply(x: Int): U }
66

77
class OverloadedFun[T](x: T) {
@@ -12,7 +12,7 @@ class OverloadedFun[T](x: T) {
1212
def poly[U](f: Int => String): String = f(1)
1313
def poly[U](f: Int => U): U = f(1)
1414

15-
// def polySam[U](f: Sam): String = f(1) Only function types supported for pretype-args
15+
// def polySam[U](f: MonoSam): String = f(1) Only function types supported for pretype-args
1616
// def polySam[U](f: SamP[U]): U = f(1)
1717

1818
// check that we properly instantiate java.util.function.Function's type param to String

0 commit comments

Comments
 (0)