@@ -1406,15 +1406,6 @@ import cc.CaptureSet.IdentityCaptRefMap
14061406 | """
14071407 }
14081408
1409- class ParameterizedTypeLacksArguments (psym : Symbol )(using Context )
1410- extends TypeMsg (ParameterizedTypeLacksArgumentsID ) {
1411- def msg = em " Parameterized $psym lacks argument list "
1412- def explain =
1413- em """ The $psym is declared with non-implicit parameters, you may not leave
1414- |out the parameter list when extending it.
1415- | """
1416- }
1417-
14181409 class VarValParametersMayNotBeCallByName (name : TermName , mutable : Boolean )(using Context )
14191410 extends SyntaxMsg (VarValParametersMayNotBeCallByNameID ) {
14201411 def varOrVal = if (mutable) em " ${hl(" var" )}" else em " ${hl(" val" )}"
@@ -1445,6 +1436,13 @@ import cc.CaptureSet.IdentityCaptRefMap
14451436 def explain = em " A fully applied type is expected but $tpe takes $numParams $parameters"
14461437 }
14471438
1439+ class MissingArgument (pname : Name , methString : String )(using Context )
1440+ extends TypeMsg (MissingArgumentID ):
1441+ def msg =
1442+ if pname.firstPart contains '$' then s " not enough arguments for $methString"
1443+ else s " missing argument for parameter $pname of $methString"
1444+ def explain = " "
1445+
14481446 class DoesNotConformToBound (tpe : Type , which : String , bound : Type )(using Context )
14491447 extends TypeMismatchMsg (
14501448 if which == " lower" then bound else tpe,
@@ -2535,3 +2533,4 @@ import cc.CaptureSet.IdentityCaptRefMap
25352533 extends TypeMsg (NotClassTypeID ), ShowMatchTrace (tp):
25362534 def msg = ex " $tp is not a class type "
25372535 def explain = " "
2536+
0 commit comments