E056: Missing Type Parameter For

This error is emitted when a higher-kinded type or type constructor is used where a fully applied type is expected.

A type constructor (like List or Option) needs to be applied to type arguments before it can be used as a value type. For example, List by itself is a type constructor, but List[Int] is a proper type.


Example

val items: List = List(1, 2, 3)

Error

-- [E056] Syntax Error: example.scala:1:11 -------------------------------------
1 |val items: List = List(1, 2, 3)
  |           ^^^^
  |           Missing type parameter for List

Solution

// Provide the type parameter
val items: List[Int] = List(1, 2, 3)
// Or let the compiler infer the type
val items = List(1, 2, 3)