Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit 6dd3653b9c443170492eba63be542440496d0432 1 parent d43618a
@huitseeker huitseeker authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/compiler/scala/tools/nsc/typechecker/Implicits.scala
View
2  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
}
Please sign in to comment.
Something went wrong with that request. Please try again.