Skip to content

Commit

Permalink
Add covariance into type aliases to support scala 2.12
Browse files Browse the repository at this point in the history
  • Loading branch information
pomadchin authored and echeipesh committed Aug 6, 2018
1 parent f9a661a commit 9825fd2
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions vector/src/main/scala/geotrellis/vector/package.scala
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ package object vector extends SeqMethods
with triangulation.Implicits
with voronoi.Implicits {

type PointFeature[D] = Feature[Point, D]
type LineFeature[D] = Feature[Line, D]
type PolygonFeature[D] = Feature[Polygon, D]
type MultiPointFeature[D] = Feature[MultiPoint, D]
type MultiLineFeature[D] = Feature[MultiLine, D]
type MultiPolygonFeature[D] = Feature[MultiPolygon, D]
type GeometryCollectionFeature[D] = Feature[GeometryCollection, D]
type PointFeature[+D] = Feature[Point, D]
type LineFeature[+D] = Feature[Line, D]
type PolygonFeature[+D] = Feature[Polygon, D]
type MultiPointFeature[+D] = Feature[MultiPoint, D]
type MultiLineFeature[+D] = Feature[MultiLine, D]
type MultiPolygonFeature[+D] = Feature[MultiPolygon, D]
type GeometryCollectionFeature[+D] = Feature[GeometryCollection, D]

// MethodExtensions

Expand Down

0 comments on commit 9825fd2

Please sign in to comment.