Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com {
- package object example {
- type Util = com.others.Util
- val Util = com.others.Util
- }
- package example {
- object Main {
- def main(args: Array[String]):Unit = {
- new Util().p("aaa")
- Util.p("bbb")
- }
- }
- }
- package others {
- class Util {
- def p(str: String) = println(str)
- }
- object Util {
- def p(str: String) = println(str)
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement