File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed
Draco.Compiler.Tests/Semantics
Draco.Compiler/Internal/Solver Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -1930,7 +1930,7 @@ public void PassBaseTypeToDerivedTypeParameter()
1930
1930
1931
1931
// Assert
1932
1932
Assert . Single ( diags ) ;
1933
- AssertDiagnostics ( diags , TypeCheckingErrors . NoMatchingOverload ) ;
1933
+ AssertDiagnostics ( diags , TypeCheckingErrors . TypeMismatch ) ;
1934
1934
}
1935
1935
1936
1936
[ Fact ]
Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ private void CheckForIncompleteInference(DiagnosticBag diagnostics)
110
110
location : InferDiagnosticTargetSyntax ( this . Context . DeclaringSyntax ) ? . Location ,
111
111
formatArgs : this . ContextName ) ) ;
112
112
113
- this . FailRemainingRules ( ) ;
113
+ this . FailRemainingRules ( diagnostics ) ;
114
114
}
115
115
116
116
/// <summary>
Original file line number Diff line number Diff line change @@ -454,7 +454,8 @@ private static void FailOverload(Overload overload)
454
454
/// <summary>
455
455
/// Fails all remaining rules in the solver.
456
456
/// </summary>
457
- private void FailRemainingRules ( )
457
+ /// <param name="diagnostics">Diagnostics to report to.</param>
458
+ private void FailRemainingRules ( DiagnosticBag diagnostics )
458
459
{
459
460
var previousStoreSize = this . constraintStore . Count ;
460
461
while ( true )
@@ -478,7 +479,7 @@ private void FailRemainingRules()
478
479
this . constraintStore . RemoveAll ( constraintsToRemove ) ;
479
480
480
481
// Assume this solves everything
481
- this . SolveUntilFixpoint ( DiagnosticBag . Empty ) ;
482
+ this . SolveUntilFixpoint ( diagnostics ) ;
482
483
483
484
// Check for exit condition
484
485
if ( previousStoreSize == this . constraintStore . Count ) break ;
You can’t perform that action at this time.
0 commit comments