Open skejeton opened 1 month ago
In fact, this is not about interfaces:
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)
}
interesting
In
load
, there will be an error becausef::Font
toFont
(interface) is not implicitly converted, the workaround is: