Please sign in to comment.
No bounds-driven inference for the named.
This is a variation on the previous commit which excludes named type parameters, so this works def f(x: Class[_]) = x.foo.bar But this does not: def f[T](x: Class[T]) = x.foo.bar This seems undesirable to me, but I offer it in case it makes the patch more attractive to others.
- Loading branch information...
Showing with 12 additions and 8 deletions.
|@@ -1,5 +1,8 @@|
|-t5687.scala:20: error: overriding type Repr in class Template with bounds[T <: AnyRef] <: Template[T];|
|+t5687.scala:4: error: type arguments [T] do not conform to class Template's type parameter bounds [T <: AnyRef]|
|+ type Repr[T]<:Template[T]|
|+t5687.scala:20: error: overriding type Repr in class Template with bounds[T] <: Template[T];|
|type Repr has incompatible type|
|type Repr = CurveTemplate[T]|
|-one error found|
|+two errors found|