diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2016-01-27 19:01:25 +1000 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2016-01-29 11:10:35 +1000 |
commit | 136c5ed872d518eba327813c97e92111093e5a0a (patch) | |
tree | 3b1cf6ff6804fadfcd983c1b7fb54b716eee8afa /src/compiler/scala/tools/nsc/typechecker/Typers.scala | |
parent | 95873186340571ff32a9461946d531d261e9b7d7 (diff) | |
download | scala-136c5ed872d518eba327813c97e92111093e5a0a.tar.gz scala-136c5ed872d518eba327813c97e92111093e5a0a.tar.bz2 scala-136c5ed872d518eba327813c97e92111093e5a0a.zip |
Avoid exhaustivity warning in typedTemplate
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/Typers.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/typechecker/Typers.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/Typers.scala b/src/compiler/scala/tools/nsc/typechecker/Typers.scala index 84af9233e1..bf64ed9baa 100644 --- a/src/compiler/scala/tools/nsc/typechecker/Typers.scala +++ b/src/compiler/scala/tools/nsc/typechecker/Typers.scala @@ -1860,7 +1860,7 @@ trait Typers extends Adaptations with Tags with TypersTracking with PatternTyper clazz.annotations.map(_.completeInfo()) if (templ.symbol == NoSymbol) templ setSymbol clazz.newLocalDummy(templ.pos) - val self1 = templ.self match { + val self1 = (templ.self: @unchecked) match { case vd @ ValDef(_, _, tpt, EmptyTree) => val tpt1 = checkNoEscaping.privates( clazz.thisSym, |