aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/viewtest1.scala
Commit message (Collapse)AuthorAgeFilesLines
* Drop special case around Function1Martin Odersky2017-03-081-42/+0
| | | | | | Now only Scala2 mode treats Function1's as implicit conversions. Instead we introduce a new subclass ImplicitConverter of Function1, instances of which are turned into implicit conversions.
* add/strictMartin Odersky2015-03-131-0/+42
Add -strict option to do some type checks that are encessary to ensure type soundness, but are stricter than what Scala 2.x enforces. The first such test is the "pattern cannot be uniquely instantiated" problem where we reject a non-variant case subclass of a covariant superclass in a pattern match. The error is now only issued in -struct mode, otherwise it will be a warning. We might move more tests into the same category. This should help the transition.