Skip to content

Commit

Permalink
Fix more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanjermakov committed Nov 25, 2024
1 parent 4f72014 commit 1c1157a
Show file tree
Hide file tree
Showing 3 changed files with 174 additions and 268 deletions.
2 changes: 1 addition & 1 deletion src/e2e.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ const compileStd = async (): Promise<void> => {
const pkg = buildPackage(config.pkgPath, config.pkgName!, ctx)!

ctx.packages = [pkg]
ctx.prelude = pkg.modules.find(m => m.identifier.names.at(-1)! === 'prelude')!
ctx.prelude = pkg.modules.find(m => m.identifier.names.at(-1)!.value === 'prelude')!
ctx.packages.forEach(p => {
p.modules.forEach(m => {
prepareModule(m)
Expand Down
2 changes: 1 addition & 1 deletion src/phase/name-resolve.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const resolveName = (node: AstNode, ctx: Context, ns: Namespace[] = [...n
node.typeArgs.forEach(ta => resolveName(ta, ctx, ['type']))
const def = findById(node, ctx, ns)
if (!def) {
addError(ctx, notFoundError(ctx, node, idToString(node)), true)
addError(ctx, notFoundError(ctx, node, idToString(node)))
break
}
node.def = def
Expand Down
Loading

0 comments on commit 1c1157a

Please sign in to comment.