1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
|
[ERROR] Main.hx:8: characters 9-18
8 | C.f("hi");
| ^^^^^^^^^
| Could not find a suitable overload, reasons follow
| Overload resolution failed for () -> Void
8 | C.f("hi");
| ^^^^
| Too many arguments
| Overload resolution failed for (t : f.T) -> Void
8 | C.f("hi");
| ^^^^
| Constraint check failure for f.T
| String should be Int
| For function argument 't'
[ERROR] Main.hx:9: characters 9-16
9 | C.f({});
| ^^^^^^^
| Could not find a suitable overload, reasons follow
| Overload resolution failed for () -> Void
9 | C.f({});
| ^^
| Too many arguments
| Overload resolution failed for (t : f.T) -> Void
9 | C.f({});
| ^^
| Constraint check failure for f.T
| { } should be Int
| For function argument 't'
|