mirror of
https://github.com/irmen/prog8.git
synced 2025-11-01 22:16:16 +00:00
%output library header generation depends on compiler target
fileselector example tweaks
This commit is contained in:
@@ -275,7 +275,8 @@ class AstPreprocessor(val program: Program,
|
||||
if(targetStatement is Subroutine) {
|
||||
for(arg in call.args.zip(targetStatement.parameters)) {
|
||||
if(arg.first.inferType(program).isBytes && arg.second.type.isString) {
|
||||
errors.err("cannot use byte value for string parameter", arg.first.position)
|
||||
if((arg.first as? NumericLiteral)?.number!=0.0)
|
||||
errors.err("cannot use byte value for string parameter", arg.first.position)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user