From e0038b316518eb6c2a542574807746c52c347582 Mon Sep 17 00:00:00 2001 From: "Paolo G. Giarrusso" Date: Thu, 5 Apr 2018 21:37:12 +0200 Subject: [PATCH] Fix case-insensitive-fs warning in test This came up in #4254, though it might not matter. --- tests/pos/overloaded_ho_fun.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/pos/overloaded_ho_fun.scala b/tests/pos/overloaded_ho_fun.scala index eb7f4c8e7aab..fba1363e60e5 100644 --- a/tests/pos/overloaded_ho_fun.scala +++ b/tests/pos/overloaded_ho_fun.scala @@ -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) { @@ -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