Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class toto(s: String) {
- }
- object tata {
- def t(implicit a: toto) {
- println("Got in tata; " + a)
- }
- }
- object essai {
- def t(implicit a: toto) {
- tata.t
- println("Got "+a)
- }
- }
- >>{
- implicit val t: toto = new toto("Hello")
- essai.t
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement