I have a variable defined in a file like
let someVar = SomeClass()
I want to be able to use this variable in another file as something like:
let _ = someVar.method()
what changes do I need to make something like this happen?
just making the variable exportable by appending a * will make someVar importable.
let someVar* = SomeClass()
Please login first before posting an answer.