Permalink
Browse files

SI-8126 Puts SI-6899 fix under a source level flag

  • Loading branch information...
1 parent d43618a commit 6dd3653b9c443170492eba63be542440496d0432 @huitseeker huitseeker committed Dec 19, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/compiler/scala/tools/nsc/typechecker/Implicits.scala
@@ -1365,7 +1365,7 @@ trait Implicits {
maybeInvalidConversionError("the result type of an implicit conversion must be more specific than AnyRef")
result = SearchFailure
}
- else if (isInvalidConversionSource(pt)) {
+ else if (settings.isScala211 && isInvalidConversionSource(pt)) {
maybeInvalidConversionError("an expression of type Null is ineligible for implicit conversion")
result = SearchFailure
}

0 comments on commit 6dd3653

Please sign in to comment.