lang: unification: Don't stall the solver over generators

If we have a solution, and all that remains are generators, then feel
free to remove them and win.
This commit is contained in:
James Shubin
2021-05-11 05:14:28 -04:00
parent b4a70b02e3
commit 2d7deef4e2
4 changed files with 42 additions and 3 deletions

View File

@@ -0,0 +1 @@
Vertex: test[the answer is 42]

View File

@@ -0,0 +1,5 @@
import "fmt"
$out = 42
test fmt.printf("the answer is %d", $out) {}