diff options
author | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2015-04-09 18:14:25 +0200 |
---|---|---|
committer | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2015-04-09 23:13:51 +0200 |
commit | 74957b3b20aae3a0a2c7a41000c5a1424586f412 (patch) | |
tree | eb26dcb0cf2cf992ebf8d2eb763d03ff6da8634d /src/dotty/tools/dotc/typer/Typer.scala | |
parent | d0804782ba6956b1f906e646d14e3547adcaa23a (diff) | |
download | dotty-74957b3b20aae3a0a2c7a41000c5a1424586f412.tar.gz dotty-74957b3b20aae3a0a2c7a41000c5a1424586f412.tar.bz2 dotty-74957b3b20aae3a0a2c7a41000c5a1424586f412.zip |
Ensure spaces after `if` in Dotty source.
Diffstat (limited to 'src/dotty/tools/dotc/typer/Typer.scala')
-rw-r--r-- | src/dotty/tools/dotc/typer/Typer.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/typer/Typer.scala b/src/dotty/tools/dotc/typer/Typer.scala index 6befe58df..a2b280c6e 100644 --- a/src/dotty/tools/dotc/typer/Typer.scala +++ b/src/dotty/tools/dotc/typer/Typer.scala @@ -309,7 +309,7 @@ class Typer extends Namer with TypeAssigner with Applications with Implicits wit } } - if(ctx.compilationUnit.isJava && tree.name.isTypeName) { + if (ctx.compilationUnit.isJava && tree.name.isTypeName) { // SI-3120 Java uses the same syntax, A.B, to express selection from the // value A and from the type A. We have to try both. tryEither(tryCtx => asSelect(tryCtx))((_,_) => asJavaSelectFromTypeTree(ctx)) |