summaryrefslogtreecommitdiff
path: root/test/files/presentation/t8085b.check
Commit message (Collapse)AuthorAgeFilesLines
* Merge commit '97b9b2c06a' from 2.10.x into masterAdriaan Moors2014-01-171-1/+1
| | | | | | | | | Check files updated: test/files/presentation/t8085*.check Conflicts: build.xml src/compiler/scala/tools/nsc/ast/parser/Parsers.scala src/compiler/scala/tools/nsc/symtab/classfile/ICodeReader.scala
* SI-8085 Fix BrowserTraverser for package objectsJason Zaugg2013-12-181-0/+3
A source file like: import foo.bar package object baz Is parsed into: package <empty> { import foo.bar package baz { object `package` } } A special case in Namers compensates by adjusting the owner of `baz` to be `<root>`, rather than `<empty>`. This wasn't being accounted for in `BrowserTraverser`, which underpins `-sourcepath`, and allows the presentation compiler to load top level symbols from sources outside those passes as the list of sources to compile. This bug did not appear in sources like: package p1 package object p2 { ... } ... because the parser does not wrap this in the `package <empty> {}` This goes some way to explaining why it has gone unnoticed for so long.