Skip to content

Instantly share code, notes, and snippets.

@okomok
okomok / gist:80658
Created March 17, 2009 17:08
wrong mulitpass
// Copyright Shunsuke Sogame 2008-2009.
// Distributed under the terms of an MIT-style license.
package mada.iter
/**
@okomok
okomok / gist:102427
Created April 27, 2009 10:24
forwarding
trait Func0 {
type A1 <: Any
type A2 <: Any
type apply2[x <: A1, y <: A2]
}
type foo[f <: Func0 { type A1 >: String; type A2 >: Any }] = f#apply2[String, Any]
trait f extends Func0 {
type A1 = String
type A2 = Any
@okomok
okomok / using maven-repo
Created October 17, 2010 07:24
using maven-repo
// Copyright Shunsuke Sogame 2008-2010.
// Distributed under the terms of an MIT-style license.
import sbt._
class HelloSbt(info: ProjectInfo) extends DefaultProject(info) {
override def compileOptions = Seq(Deprecation, Unchecked/*, ExplainTypes*/) ++ compileOptions("-Yrecursion", "50") ++ super.compileOptions