improve int/float type resolution

This commit is contained in:
2026-08-08 22:37:35 +02:00
parent 081a3fd5df
commit e0f1d2d7cb
2 changed files with 19 additions and 3 deletions
+13 -1
View File
@@ -14865,7 +14865,19 @@ exercise func(cursor usize, narrow i8, wider i16, count i32) i32 {
return 0
}
main func() i32 { return exercise(7, 1, 1000, 3) }
scan_open_cursor func() void {
cursor := 0
first Token := Token{start = cursor}
second Token := Token{start = cursor}
_ = first
_ = second
}
main func() i32 {
result := exercise(7, 1, 1000, 3)
scan_open_cursor()
return result
}
`
source_file := source.Source{path="record_constraints.bro", text=text}
diagnostics := source.init_diagnostics(&source_file)