File tree Expand file tree Collapse file tree 2 files changed +1
-7
lines changed
src/dotty/tools/dotc/core Expand file tree Collapse file tree 2 files changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -47,13 +47,6 @@ trait Symbols { this: Context =>
4747
4848// ---- Symbol creation methods ----------------------------------
4949
50- /** Create a symbol from a function producing its denotation */
51- def newSymbolDenoting [N <: Name ](denotFn : Symbol => SymDenotation , coord : Coord = NoCoord ): Symbol { type ThisName = N } = {
52- val sym = newNakedSymbol[N ](coord)
53- sym.denot = denotFn(sym)
54- sym
55- }
56-
5750 /** Create a symbol from its fields (info may be lazy) */
5851 def newSymbol [N <: Name ](
5952 owner : Symbol ,
Original file line number Diff line number Diff line change @@ -93,6 +93,7 @@ class tests extends CompilerTest {
9393 @ Test def pos_packageObj = compileFile(posDir, " i0239" , twice)
9494 @ Test def pos_anonClassSubtyping = compileFile(posDir, " anonClassSubtyping" , twice)
9595 @ Test def pos_extmethods = compileFile(posDir, " extmethods" , twice)
96+ @ Test def pos_companions = compileFile(posDir, " companions" , twice)
9697
9798 @ Test def pos_all = compileFiles(posDir) // twice omitted to make tests run faster
9899
You can’t perform that action at this time.
0 commit comments