travisdoor / bl

Simple programming language created for fun.
https://biscuitlang.org
MIT License
179 stars 6 forks source link

Invalid overload score for auto cast arguments #167

Open travisdoor opened 1 year ago

travisdoor commented 1 year ago

Compiler cannot pick the right overload.

#import "extra/glm"

main :: fn () s32 {
    using glm;
    rect(auto 10, v4.{ 1.f, 0.f, 0.f, 1.f });
    return 0;
}

rect :: fn {
    fn (height: f32, color := glm.v4_one) #inline {
        height;
        color;
    };
    fn (height: f32, colors: []glm.v4) #inline {
        height;
        colors;
    };
}