diff options
Diffstat (limited to 'src/server/analysis.odin')
| -rw-r--r-- | src/server/analysis.odin | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/server/analysis.odin b/src/server/analysis.odin index 7538fe1..219ce3c 100644 --- a/src/server/analysis.odin +++ b/src/server/analysis.odin @@ -313,6 +313,15 @@ are_symbol_untyped_basic_same_typed :: proc(a, b: Symbol) -> (bool, bool) { return true, true } } + // Untyped ints are allowed to map to floats + if untyped.type == .Integer { + names := untyped_map[.Float] + for name in names { + if basic.ident.name == name { + return true, true + } + } + } return false, true } else if untyped_b, ok := b.value.(SymbolUntypedValue); ok { return untyped.type == untyped_b.type, true |