aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/typer/Typer.scala
diff options
context:
space:
mode:
authorDmitry Petrashko <dmitry.petrashko@gmail.com>2015-02-19 12:40:07 +0100
committerDmitry Petrashko <dmitry.petrashko@gmail.com>2015-03-18 10:52:32 +0100
commita226a3ffb176b1e43fd68f601f7c7cf0f3a93a4b (patch)
tree0bcaa85f9e6b7ab8e219cfc638bc0d1418ca56ba /src/dotty/tools/dotc/typer/Typer.scala
parent8e3240b43a839506c71c8793f4d904c089918389 (diff)
downloaddotty-a226a3ffb176b1e43fd68f601f7c7cf0f3a93a4b.tar.gz
dotty-a226a3ffb176b1e43fd68f601f7c7cf0f3a93a4b.tar.bz2
dotty-a226a3ffb176b1e43fd68f601f7c7cf0f3a93a4b.zip
Add comment in Typer.typedReturn
Diffstat (limited to 'src/dotty/tools/dotc/typer/Typer.scala')
-rw-r--r--src/dotty/tools/dotc/typer/Typer.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dotty/tools/dotc/typer/Typer.scala b/src/dotty/tools/dotc/typer/Typer.scala
index b3ac0f50a..5dc0452d1 100644
--- a/src/dotty/tools/dotc/typer/Typer.scala
+++ b/src/dotty/tools/dotc/typer/Typer.scala
@@ -347,8 +347,8 @@ class Typer extends Namer with TypeAssigner with Applications with Implicits wit
val clsDef = TypeDef(x, templ).withFlags(Final)
typed(cpy.Block(tree)(clsDef :: Nil, New(Ident(x), Nil)), pt)
case _ =>
- val tpt1 = typedType(tree.tpt)
- checkClassTypeWithStablePrefix(tpt1.tpe, tpt1.pos, traitReq = false)
+ val tpt1 = typedType(tree.tpt)
+ checkClassTypeWithStablePrefix(tpt1.tpe, tpt1.pos, traitReq = false)
assignType(cpy.New(tree)(tpt1), tpt1)
// todo in a later phase: checkInstantiatable(cls, tpt1.pos)
}