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
The following code triggers a runtime panic in Gno, but it should fail at preprocessor time due to invalid arguments passed to the built-in function len.
funcmain() {
a:=len(nil)
println(a)
}
Expected Behavior
The code should fail to compile and produce a preprocessor error, such as:
invalid argument: nil for built-in len
Actual Behavior
the code compiles successfully but triggers a runtime panic when executed.
Description
The following code triggers a runtime panic in Gno, but it should fail at preprocessor time due to invalid arguments passed to the built-in function
len
.Expected Behavior
The code should fail to compile and produce a preprocessor error, such as:
Actual Behavior
the code compiles successfully but triggers a runtime panic when executed.
Stacktrace
The text was updated successfully, but these errors were encountered: