Skip to content

Commit

Permalink
Merge pull request scala#4632 from janekdb/2.11.x-names-t-v
Browse files Browse the repository at this point in the history
Improve some names (t-v)
  • Loading branch information
SethTisue committed Jul 20, 2015
2 parents d48b45b + 63a18ac commit e84e06c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/compiler/scala/tools/nsc/typechecker/RefChecks.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1134,13 +1134,13 @@ abstract class RefChecks extends InfoTransform with scala.reflect.internal.trans
t hasSymbolWhich (_.accessedOrSelf == valOrDef.symbol)
case _ => false
}
val trivialInifiniteLoop = (
val trivialInfiniteLoop = (
!valOrDef.isErroneous
&& !valOrDef.symbol.isValueParameter
&& valOrDef.symbol.paramss.isEmpty
&& callsSelf
)
if (trivialInifiniteLoop)
if (trivialInfiniteLoop)
reporter.warning(valOrDef.rhs.pos, s"${valOrDef.symbol.fullLocationString} does nothing other than call itself recursively")
}

Expand Down
2 changes: 1 addition & 1 deletion test/files/run/test-cpp.scala
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ object TestSetterInline {
* The access of the local variable 'y' should be replaced by the
* constant.
*/
object TestAliasChainConstat {
object TestAliasChainConstant {

def main(args: Array[String]): Unit = {
val x = 2
Expand Down
2 changes: 1 addition & 1 deletion test/junit/scala/tools/nsc/doc/html/HtmlDocletTest.scala
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import scala.tools.testing.AssertUtil._
@RunWith(classOf[JUnit4])
class HtmlDocletTest {
@Test
def testSyntaxHighlightningUnicode() {
def testSyntaxHighlightingUnicode() {
val in = "unicode: …"

val out = SyntaxHigh(in).toString
Expand Down

0 comments on commit e84e06c

Please sign in to comment.