You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fn f(): (int, int) {
return 5, 7
}
fn g(): (int, real) {
return f() // Incompatible types { int real } and { int int }
}
fn main() {
a, b := g()
printf("%v %v\n", a, b)
}
vtereshkov
changed the title
Auto convert to interface from multiple return values.
Allow implicit type casts for expression list items
Jun 6, 2024
In
load
, there will be an error becausef::Font
toFont
(interface) is not implicitly converted, the workaround is:The text was updated successfully, but these errors were encountered: