diff options
Diffstat (limited to 'test/files/neg')
-rw-r--r-- | test/files/neg/type-diagnostics.check | 4 | ||||
-rw-r--r-- | test/files/neg/type-diagnostics.scala | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/test/files/neg/type-diagnostics.check b/test/files/neg/type-diagnostics.check index 0ed9f4631b..c5e6dec3f8 100644 --- a/test/files/neg/type-diagnostics.check +++ b/test/files/neg/type-diagnostics.check @@ -1,8 +1,8 @@ type-diagnostics.scala:4: error: type mismatch; found : scala.collection.Set[String] required: scala.collection.immutable.Set[String] - def f = Calculator("Hello",binding.keySet) - ^ + def f = Calculator("Hello", binding.keySet: collection.Set[String]) + ^ type-diagnostics.scala:13: error: type mismatch; found : List[a(in method f2)] required: List[a(in method f1)] diff --git a/test/files/neg/type-diagnostics.scala b/test/files/neg/type-diagnostics.scala index fcc49812f4..c4171328de 100644 --- a/test/files/neg/type-diagnostics.scala +++ b/test/files/neg/type-diagnostics.scala @@ -1,7 +1,7 @@ object SetVsSet { case class Calculator[+T](name: String, parameters: Set[String]) val binding = Map.empty[String, String] - def f = Calculator("Hello",binding.keySet) + def f = Calculator("Hello", binding.keySet: collection.Set[String]) } object TParamConfusion { |