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
Is your feature request related to a problem? Please describe.
If there is more than one error in the code, the compiler will always emit only one:
for this code:
fun say_hi(name: Text) {
echo "hi " + name
}
say_hi("li hua")
say_hi(123)
say_hi(123)
compiler errors out with:
ERROR 1st argument 'name' of function 'say_hi' expects type 'Text', but 'Num' was given
at test.ab:5:1
4| say_hi("li hua")
5| say_hi(123)
6| say_hi(123)
Describe the solution you'd like
something like this:
ERROR 1st argument 'name' of function 'say_hi' expects type 'Text', but 'Num' was given
at test.ab:5:1
4| say_hi("li hua")
5| say_hi(123)
6| say_hi(123)
ERROR 1st argument 'name' of function 'say_hi' expects type 'Text', but 'Num' was given
at test.ab:6:1
5| say_hi(123)
6| say_hi(123)
Describe alternatives you've considered
leave it as is because it might not be worth the major restructuring efforts
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
If there is more than one error in the code, the compiler will always emit only one:
for this code:
compiler errors out with:
Describe the solution you'd like
something like this:
Describe alternatives you've considered
leave it as is because it might not be worth the major restructuring efforts
The text was updated successfully, but these errors were encountered: