```val console = object { fun draw() } fun a() = c...
# getting-started
e
Copy code
val console = object { fun draw() }
fun a() = console.draw() // error draw unresolved
f
you must define a body for
draw()
in the first line
val console = object { fun draw() { } }
e
it does have
I didn't report in the example
o
That doesn’t work, because
console
is public, and we don’t have any (named) type to expose to other modules. Make it internal, and it should work.