diff options
author | Paul Phillips <paulp@improving.org> | 2013-01-11 18:52:10 -0800 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2013-01-11 18:52:10 -0800 |
commit | 5f51e3f754d15415e21f79c2fc81995f89019edf (patch) | |
tree | 6622ac88e854191a6f475db584d01843f34f14c3 /src/compiler/scala/tools/nsc/typechecker/TypeDiagnostics.scala | |
parent | 64ec51b31f9563580e250ac45714b9d3d86abde1 (diff) | |
parent | 198d5229967367493960a6b4e0f9c382d7122a25 (diff) | |
download | scala-5f51e3f754d15415e21f79c2fc81995f89019edf.tar.gz scala-5f51e3f754d15415e21f79c2fc81995f89019edf.tar.bz2 scala-5f51e3f754d15415e21f79c2fc81995f89019edf.zip |
Merge pull request #1874 from paulp/pr/mode-value-class
Made "mode" into a value class.
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/TypeDiagnostics.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/typechecker/TypeDiagnostics.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/TypeDiagnostics.scala b/src/compiler/scala/tools/nsc/typechecker/TypeDiagnostics.scala index 56b43eaa41..ab1751b4f0 100644 --- a/src/compiler/scala/tools/nsc/typechecker/TypeDiagnostics.scala +++ b/src/compiler/scala/tools/nsc/typechecker/TypeDiagnostics.scala @@ -547,7 +547,7 @@ trait TypeDiagnostics { } // The checkDead call from typedArg is more selective. - def inMode(mode: Int, tree: Tree): Tree = { + def inMode(mode: Mode, tree: Tree): Tree = { val modeOK = (mode & (EXPRmode | BYVALmode | POLYmode)) == (EXPRmode | BYVALmode) if (modeOK) apply(tree) else tree |