Open dadooda opened 4 weeks ago
Given that pub fn join_path(base string, dirs ...string) string {
, I think that os.join_path(...args)
should be a checker error (the first argument base
, is a string
).
This for example works as it should (with an explicit string literal used as the first argument):
import os
fn do_join(args ...string) string {
return os.join_path('abc', ...args)
}
dump( do_join('xx', 'yy') )
Delyan,
I think that
os.join_path(...args)
should be a checker error.
Sounds quite reasonable.
Describe the bug
As shown by the demo file below.
Reproduction Steps
Trying compile this:
, I get this:
Expected Behavior
Proper compilation.
Current Behavior
Compilation failure.
Possible Solution
No response
Additional Information/Context
No response
V version
V 0.4.7 7baff15
Environment details (OS name and version, etc.)
Ubuntu 18 under WSL.