You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hasherrormsg.nelua:1:1: from: AST node Block
require 'hashmap'
^~~~~~~~~~~~~~~~~
error: in call of function 'hashmap(int64, V).__atindex' at argument 1: no viable type conversion from 'record{id: string, word: string, reading: string}' to 'int64'
Expected behavior
An error message pointing to the map[row], similar to
hasherrormsg2.nelua:1:1: from: AST node Block
require 'hashmap'
^~~~~~~~~~~~~~~~~
hasherrormsg2.nelua:9:4: error: in call of function 'set' at argument 1: no viable type conversion from 'record{id: string, word: string, reading: string}' to 'int64'
set(row, { -- oops! should be: map[id]
^~~~~~~
Code example
With output:
Expected behavior
An error message pointing to the
map[row]
, similar toWhich has this output:
Environment
Linux x86_64
Nelua 0.2.0-dev
Build number: 1605
Git date: 2023-11-05 16:12:59 -0300
Git hash: decf713
Semantic version: 0.2.0-dev.1605+decf713c
Copyright (C) 2019-2023 Eduardo Bart (https://nelua.io/)
The text was updated successfully, but these errors were encountered: