Bug #26 followup: Generated Go file missing 'import "math"'
Error:
sim_gen/bridge.go:75:27: undefined: math
Generated code uses math.Pi, math.Sin, math.Cos but the file is missing:
Header of sim_gen/bridge.go shows no imports:
// Code generated by ailang. DO NOT EDIT.
package sim_gen
func screenWidth_impl(...
Codegen needs to add the math import when std/math functions are used.
Reported by: cli via ailang messages
Bug #26 followup: Generated Go file missing 'import "math"'
Error:
Generated code uses
math.Pi,math.Sin,math.Cosbut the file is missing:Header of sim_gen/bridge.go shows no imports:
Codegen needs to add the math import when std/math functions are used.
Reported by: cli via ailang messages