elect
11/17/2017, 9:21 AMval console = object { fun draw() }
fun a() = console.draw() // error draw unresolvedFré Dumazy
11/17/2017, 9:33 AMdraw() in the first lineFré Dumazy
11/17/2017, 9:34 AMval console = object { fun draw() { } }elect
11/17/2017, 9:35 AMelect
11/17/2017, 9:35 AMorangy
console is public, and we don’t have any (named) type to expose to other modules. Make it internal, and it should work.