diff options
author | Martin Odersky <odersky@gmail.com> | 2013-03-08 16:19:02 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2013-03-08 16:19:02 +0100 |
commit | 549bc867081204e872573f0e69db5adc57ecd735 (patch) | |
tree | a5b8f8c5f41ab981bba9777b4e5d04e5549e9bd2 /src/dotty/tools/dotc/core | |
parent | 00578454211f8cb779018347b5964c08b292e170 (diff) | |
download | dotty-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')
-rw-r--r-- | src/dotty/tools/dotc/core/Symbols.scala | 2 |
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) = |