neilsf / xc-basic3

A BASIC cross compiler for MOS 6502-based machines
MIT License
42 stars 5 forks source link

Implicit type conversion is not working if argument list contains string arguments #247

Open orlof opened 9 months ago

orlof commented 9 months ago

This works:

SUB Test(Col AS WORD) SHARED STATIC
    PRINT "Hello World"
END SUB

CALL Test(1)

This does not work:

SUB Test(Col AS WORD, Text AS STRING * 40) SHARED STATIC
    PRINT Text
END SUB

CALL Test(1, "Hello World")

..giving ERROR: SUB or FUNCTION "Test" not callable using argument(s) (byte, string)