This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class B { | |
| def methodB(): String = "" | |
| } | |
| class A(b: B) { | |
| def methodA(): String = b.methodB | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class B | |
| class A(b: B) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Simply, make it works! | |
| */ | |
| import scala.concurrent.Future | |
| import scala.util.{Left, Random, Right} | |
| import scala.concurrent._ | |
| type Error = Boolean | |
| type Nin = String | |
| case class Product(nin: String) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* We start with very simple example */ | |
| /*scalac -print B.scala */ | |
| //[[syntax trees at end of cleanup]] // B.scala | |
| //package <empty> { | |
| // abstract trait B extends Object { | |
| // <stable> <accessor> def a(): String | |
| // }; | |
| // abstract trait B$class extends { | |
| // def /*B$class*/$init$($this: B): Unit = { |