aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/core/Symbols.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2013-03-08 16:19:02 +0100
committerMartin Odersky <odersky@gmail.com>2013-03-08 16:19:02 +0100
commit549bc867081204e872573f0e69db5adc57ecd735 (patch)
treea5b8f8c5f41ab981bba9777b4e5d04e5549e9bd2 /src/dotty/tools/dotc/core/Symbols.scala
parent00578454211f8cb779018347b5964c08b292e170 (diff)
downloaddotty-549bc867081204e872573f0e69db5adc57ecd735.tar.gz
dotty-549bc867081204e872573f0e69db5adc57ecd735.tar.bz2
dotty-549bc867081204e872573f0e69db5adc57ecd735.zip
Added asInstanceOf args as they are inferred to be Nothing otherwise.
Diffstat (limited to 'src/dotty/tools/dotc/core/Symbols.scala')
-rw-r--r--src/dotty/tools/dotc/core/Symbols.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/core/Symbols.scala b/src/dotty/tools/dotc/core/Symbols.scala
index fa4e6f75d..5b3a63f3d 100644
--- a/src/dotty/tools/dotc/core/Symbols.scala
+++ b/src/dotty/tools/dotc/core/Symbols.scala
@@ -28,7 +28,7 @@ trait Symbols { this: Context =>
* it's debug-friendlier not to create an anonymous class here.
*/
def newNakedSymbol[N <: Name](coord: Coord = NoCoord): Symbol { type ThisName = N } =
- new Symbol(coord).asInstanceOf
+ new Symbol(coord).asInstanceOf[Symbol { type ThisName = N }]
/** Create a class symbol without a denotation. */
def newNakedClassSymbol(coord: Coord = NoCoord, assocFile: AbstractFile = null) =