summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/symtab/classfile/ClassfileParser.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2010-12-31 07:08:27 +0000
committerPaul Phillips <paulp@improving.org>2010-12-31 07:08:27 +0000
commit6c04413edb892907b7d9765a9ccbd5d2e2632029 (patch)
treea81225740e698de309934f85a0e9f1e3d04ac310 /src/compiler/scala/tools/nsc/symtab/classfile/ClassfileParser.scala
parent2b61c308c301008fbc20ea85eb1a9075861b48c3 (diff)
downloadscala-6c04413edb892907b7d9765a9ccbd5d2e2632029.tar.gz
scala-6c04413edb892907b7d9765a9ccbd5d2e2632029.tar.bz2
scala-6c04413edb892907b7d9765a9ccbd5d2e2632029.zip
There's still some temporary scaffolding proppi...
There's still some temporary scaffolding propping up the Names situation. This removes one strut: no more is there an implicit conversion from String to TypeName. Implicits which remain to be deal with: String => TermName, Name => TermName, Name => TypeName. Once they're gone we're ready for KindNames! Just kidding, no review.
Diffstat (limited to 'src/compiler/scala/tools/nsc/symtab/classfile/ClassfileParser.scala')
-rw-r--r--src/compiler/scala/tools/nsc/symtab/classfile/ClassfileParser.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/nsc/symtab/classfile/ClassfileParser.scala b/src/compiler/scala/tools/nsc/symtab/classfile/ClassfileParser.scala
index f595abef55..5f63c4bdc7 100644
--- a/src/compiler/scala/tools/nsc/symtab/classfile/ClassfileParser.scala
+++ b/src/compiler/scala/tools/nsc/symtab/classfile/ClassfileParser.scala
@@ -462,7 +462,7 @@ abstract class ClassfileParser {
ss = s substring start
sym = owner.info.decls lookup ss
if (sym == NoSymbol) {
- sym = owner.newClass(NoPosition, ss) setInfo completer
+ sym = owner.newClass(NoPosition, newTypeName(ss)) setInfo completer
owner.info.decls enter sym
if (settings.debug.value && settings.verbose.value)
println("loaded "+sym+" from file "+file)
@@ -748,7 +748,7 @@ abstract class ClassfileParser {
case '*' => TypeBounds(definitions.NothingClass.tpe,
definitions.AnyClass.tpe)
}
- val newtparam = sym.newExistential(sym.pos, "?"+i) setInfo bounds
+ val newtparam = sym.newExistential(sym.pos, newTypeName("?"+i)) setInfo bounds
existentials += newtparam
xs += newtparam.tpe //@M should probably be .tpeHK
i += 1