Skip to content

Commit

Permalink
Todos
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanjermakov committed Aug 11, 2024
1 parent 2ca2ff6 commit ddd10ae
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/phase/name-resolve.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,10 @@ export const resolveName = (node: AstNode, ctx: Context): void => {
case 'identifier': {
const def = findById(node, ctx)
if (!def) {
if (findName(node.names[0].value, ctx)?.kind === 'name') {
// TODO: method ref on generic, e.g. src/std/iter/mod.no:56
break
}
addError(ctx, notFoundError(ctx, node, idToString(node)))
break
}
Expand Down Expand Up @@ -298,7 +302,6 @@ const findWithinDef = (def: Definition, name: Name, ctx: Context): Definition |
return undefined
}
case 'name': {
// todo('oh no')
return undefined
}
default: {
Expand Down

0 comments on commit ddd10ae

Please sign in to comment.