This file contains 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
package bitset | |
import "fmt" | |
const ( | |
chunkSize uint = 8 | |
allSet uint64 = 1<<8 - 1 | |
allReset uint64 = 0 | |
) |
This file contains 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
scala> trait A { def foo = 1; def bar = foo } | |
defined trait A | |
scala> trait B extends A { abstract override def foo = super.foo + 1 } | |
defined trait B | |
scala> new A with B {} | |
res2: java.lang.Object with A with B = $anon$1@540fe861 | |
scala> .bar |