diff options
author | Sean McDirmid <sean.mcdirmid@gmail.com> | 2008-06-24 08:43:05 +0000 |
---|---|---|
committer | Sean McDirmid <sean.mcdirmid@gmail.com> | 2008-06-24 08:43:05 +0000 |
commit | e18907e87ff7000d3547699cc3b8b5beaee7f4fc (patch) | |
tree | 88233238699a320272445f4f1164d45805939c93 /src/compiler/scala/tools/nsc/typechecker/Typers.scala | |
parent | 57209b7bf02ecd7dabab8a9819b018f1c486665a (diff) | |
download | scala-e18907e87ff7000d3547699cc3b8b5beaee7f4fc.tar.gz scala-e18907e87ff7000d3547699cc3b8b5beaee7f4fc.tar.bz2 scala-e18907e87ff7000d3547699cc3b8b5beaee7f4fc.zip |
* scaladoc - changed two objects into vals to a...
* scaladoc - changed two objects into vals to avoid NPE in current build.
- made model frame XML IDE friendly
* IDE - hardening of various crashes
- better semantic highlighting
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/Typers.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/typechecker/Typers.scala | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/Typers.scala b/src/compiler/scala/tools/nsc/typechecker/Typers.scala index aec92302f4..2740d8944d 100644 --- a/src/compiler/scala/tools/nsc/typechecker/Typers.scala +++ b/src/compiler/scala/tools/nsc/typechecker/Typers.scala @@ -2942,7 +2942,8 @@ trait Typers { self: Analyzer => if (parents1 exists (_.tpe.isError)) tree setType ErrorType else { val decls = scopeFor(tree, CompoundTreeScopeKind) - val self = refinedType(parents1 map (_.tpe), context.enclClass.owner, decls) + //Console.println("Owner: " + context.enclClass.owner + " " + context.enclClass.owner.id) + val self = refinedType(parents1 map (_.tpe), context.enclClass.owner, decls, templ.pos) newTyper(context.make(templ, self.typeSymbol, decls)).typedRefinement(templ.body) tree setType self } |