Azure / bicep

Bicep is a declarative language for describing and deploying Azure resources
MIT License
3.24k stars 748 forks source link

We should have a code fix for BCP045 (can't use "+" with strings) #7002

Open StephenWeatherford opened 2 years ago

StephenWeatherford commented 2 years ago
var s1 = 'hello'
var s2 = 'there'
output o string = s1 + s2
Cannot apply operator "+" to operands of type "'hello'" and "'there'". Use string interpolation instead.bicep(BCP045)
StephenWeatherford commented 2 years ago

Related: #1488

alex-frankel commented 2 years ago

Feels weird to be able to identify that code is wrong and be able to correct, rather than have this alternative just work, but I agree it is better than what we have today.