Hi Ambrose,
Thanks for the advice, but I seem to stuck between two different errors:
user=> (t/cf (.println ^java.io.PrintWriter *err* "foo"))
foo
Type Error (NO_SOURCE_FILE:1:7) Cannot call instance method java.io.PrintWriter/println on type java.io.Writer
in: (.println clojure.core/*err* foo)
Okay, so core.typed thinks *err* is a java.io.Writer object, which should be fine since Writer is the parent of PrintWriter, but when I try that I get:
user=> (t/cf (.println ^java.io.Writer *err* "foo"))
Reflection warning, NO_SOURCE_PATH:1:7 - call to println can't be resolved.
foo
ExceptionInfo Unresolved instance method invocation println.
Hint: add type hints.
in: (.println clojure.core/*err* "foo") clojure.core/ex-info (core.clj:4327)
Is there another way to force the type of *err*?
Thanks,
Cristian