@@ -1406,15 +1406,6 @@ import cc.CaptureSet.IdentityCaptRefMap
1406
1406
| """
1407
1407
}
1408
1408
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
-
1418
1409
class VarValParametersMayNotBeCallByName (name : TermName , mutable : Boolean )(using Context )
1419
1410
extends SyntaxMsg (VarValParametersMayNotBeCallByNameID ) {
1420
1411
def varOrVal = if (mutable) em " ${hl(" var" )}" else em " ${hl(" val" )}"
@@ -1445,6 +1436,13 @@ import cc.CaptureSet.IdentityCaptRefMap
1445
1436
def explain = em " A fully applied type is expected but $tpe takes $numParams $parameters"
1446
1437
}
1447
1438
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
+
1448
1446
class DoesNotConformToBound (tpe : Type , which : String , bound : Type )(using Context )
1449
1447
extends TypeMismatchMsg (
1450
1448
if which == " lower" then bound else tpe,
@@ -2535,3 +2533,4 @@ import cc.CaptureSet.IdentityCaptRefMap
2535
2533
extends TypeMsg (NotClassTypeID ), ShowMatchTrace (tp):
2536
2534
def msg = ex " $tp is not a class type "
2537
2535
def explain = " "
2536
+
0 commit comments