diff options
Diffstat (limited to 'test/files/neg/names-defaults-neg.check')
-rw-r--r-- | test/files/neg/names-defaults-neg.check | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/test/files/neg/names-defaults-neg.check b/test/files/neg/names-defaults-neg.check index 057a0519d7..e47cf8c420 100644 --- a/test/files/neg/names-defaults-neg.check +++ b/test/files/neg/names-defaults-neg.check @@ -88,8 +88,11 @@ match argument types (a: Int,b: java.lang.String) and expected result type Any names-defaults-neg.scala:70: error: wrong number of arguments for <none>: (x: Int,y: String)A1 A1() match { case A1(_) => () } ^ -names-defaults-neg.scala:77: error: inferred kinds of the type arguments (List[Int]) do not conform to the expected kinds of the type parameters (type T). -List[Int]'s type parameters do not match type T's expected parameters: class List has one type parameter, but type T has one +names-defaults-neg.scala:77: error: no type parameters for method test4: (x: T[T[List[T[X forSome { type X }]]]])T[T[List[T[X forSome { type X }]]]] exist so that it can be applied to arguments (List[Int]) + --- because --- +argument expression's type is not compatible with formal parameter type; + found : List[Int] + required: ?T[ ?T[ scala.List[?T[ X forSome { type X } ]] ] ] Error occured in an application involving default arguments. test4() ^ |