Try harder to preserve type information in incorrect code. This leaves a type for IDE completion and other semantically driven features to work with, eg., in the context of code as it's being written.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@18683 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
This commit is contained in:
milessabin 2009-09-10 14:31:44 +00:00
parent f658049f70
commit ceb066c672
1 changed files with 7 additions and 0 deletions

View File

@ -3217,6 +3217,13 @@ trait Typers { self: Analyzer =>
else ""))
}
setError(tree)
val tree1 = tree match {
case Select(_, _) => treeCopy.Select(tree, qual, name)
case SelectFromTypeTree(_, _) => treeCopy.SelectFromTypeTree(tree, qual, name)
}
tree1
} else {
val tree1 = tree match {
case Select(_, _) => treeCopy.Select(tree, qual, name)