Skip to content

Fix case-insensitive-fs warning in test #4257

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 5, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tests/pos/overloaded_ho_fun.scala
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import scala.math.Ordering
import scala.reflect.ClassTag

trait Sam { def apply(x: Int): String }
trait MonoSam { def apply(x: Int): String }
trait SamP[U] { def apply(x: Int): U }

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

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

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