Support nullary method refinements
bishabosha opened this issue · comments
Jamie Thompson commented
e.g.
trait Methodic {
def nullary: Any
}
class Blip[A, M <: Methodic { def nullary: A } ] {
def blip(m: M): A = m.nullary
}
class MethodicInt extends Methodic {
def nullary: Int = 23
}
object Test {
val test = new Blip[Int, MethodicInt]
}
Jamie Thompson commented
closed by #58