Open magnus-madsen opened 3 weeks ago
CC @chanattan
@chanattan It would be good to have some chaining tests where the return type is different.
@magnus-madsen valueOf is a static method and is not supported by invokeMethod2 but will be with invokeStaticMethod2.
String.replace
has no overloading by arity, I moved the tests to type overload.
split
can not be supported yet.
The rest is being worked on.
@magnus-madsen valueOf is a static method and is not supported by invokeMethod2 but will be with invokeStaticMethod2.
String.replace
has no overloading by arity, I moved the tests to type overload.split
can not be supported yet. The rest is being worked on.
Right, so some of the tests may need to wait for invoke static. But you can also try find other methods that fit the bill and test with those.
In combination with #7769
BigInt
(Test.Exp.InvokeMethod2.flix
)BigDecimal
(Test.Exp.InvokeMethod2.flix
)String
(Test.Exp.InvokeMethod2.flix
)Test.Exp.InvokeMethod2.ZeroArg.flix
)foo.bar().baz()
(Test.Exp.InvokeMethod2.Chaining.flix
)Test.Exp.InvokeMethod2.Overload.Arity.flix
)String.indexOf
overloadString.lastIndexOf
overloadString.replace
overloadString.split
overloadTest.Exp.InvokeMethod2.Overload.Types.flix
)String.valueOf
overloadString.replace
overloadTest.Exp.InvokeMethod2.Overload.Subtypes.flix
)String.contains
String.equals
Null
(Test.Exp.InvokeMethod2.Overload.Null.flix
)AmbiguousMethod
andMethodNotFound
toTestTyper
(at least 3 for each error)I suggest to use multiple names spaces as outlined in parens above.